From 008cbd36ef1b5ecd263a064ff3d612b26368099a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 24 Dec 2016 12:48:28 +0000 Subject: [PATCH] Directory --- src/freedombone-app-mediagoblin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index 3775f0e0..6ec7cc2e 100755 --- a/src/freedombone-app-mediagoblin +++ b/src/freedombone-app-mediagoblin @@ -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