Directory
This commit is contained in:
parent
d2427458e1
commit
008cbd36ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue