Browse Source

Directory

Bob Mottram 8 years ago
parent
commit
008cbd36ef
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-app-mediagoblin

+ 4
- 4
src/freedombone-app-mediagoblin View File

@@ -172,7 +172,7 @@ function restore_local_mediagoblin {
172 172
         fi
173 173
         rm -rf ${temp_restore_dir}
174 174
         rm -rf ${temp_restore_dir}2
175
-        chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
175
+        chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
176 176
         chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
177 177
     fi
178 178
 }
@@ -204,7 +204,7 @@ function restore_remote_mediagoblin {
204 204
         fi
205 205
         rm -rf /root/tempmediagoblin
206 206
         rm -rf /root/tempmediagoblin2
207
-        chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
207
+        chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
208 208
         chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
209 209
     fi
210 210
 }
@@ -255,8 +255,8 @@ function install_mediagoblin {
255 255
     useradd -c "GNU MediaGoblin system account" -d /var/lib/mediagoblin -m -r -g www-data mediagoblin
256 256
     groupadd mediagoblin
257 257
     usermod --append -G mediagoblin mediagoblin
258
-    mkdir -p /var/log/mediagoblin
259
-    chown -hR mediagoblin:mediagoblin /var/log/mediagoblin
258
+    mkdir -p /var/lib/mediagoblin
259
+    chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
260 260
     mkdir -p $MEDIAGOBLIN_BASE_DIR
261 261
     chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
262 262
     su -c "cd $MEDIAGOBLIN_BASE_DIR && git clone $MEDIAGOBLIN_REPO $MEDIAGOBLIN_BASE_DIR/mediagoblin" - mediagoblin