Directory

This commit is contained in:
Bob Mottram 2016-12-24 12:48:28 +00:00
parent d2427458e1
commit 008cbd36ef
1 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ function restore_local_mediagoblin {
fi
rm -rf ${temp_restore_dir}
rm -rf ${temp_restore_dir}2
chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
fi
}
@ -204,7 +204,7 @@ function restore_remote_mediagoblin {
fi
rm -rf /root/tempmediagoblin
rm -rf /root/tempmediagoblin2
chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
fi
}
@ -255,8 +255,8 @@ function install_mediagoblin {
useradd -c "GNU MediaGoblin system account" -d /var/lib/mediagoblin -m -r -g www-data mediagoblin
groupadd mediagoblin
usermod --append -G mediagoblin mediagoblin
mkdir -p /var/log/mediagoblin
chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
mkdir -p /var/lib/mediagoblin
chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
mkdir -p $MEDIAGOBLIN_BASE_DIR
chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
su -c "cd $MEDIAGOBLIN_BASE_DIR && git clone $MEDIAGOBLIN_REPO $MEDIAGOBLIN_BASE_DIR/mediagoblin" - mediagoblin