Permissions

This commit is contained in:
Bob Mottram 2016-12-24 15:17:07 +00:00
parent 983440dd28
commit 25d0c2c031
1 changed files with 3 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/lib/mediagoblin
chown -hR mediagoblin:www-data /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/lib/mediagoblin
chown -hR mediagoblin:www-data /var/lib/mediagoblin
chown -hR mediagoblin:www-data $MEDIAGOBLIN_BASE_DIR
fi
}
@ -257,7 +257,7 @@ function install_mediagoblin {
groupadd mediagoblin
usermod --append -G mediagoblin mediagoblin
mkdir -p /var/lib/mediagoblin
chown -hR mediagoblin:mediagoblin /var/lib/mediagoblin
chown -hR mediagoblin:www-data /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
@ -272,7 +272,6 @@ function install_mediagoblin {
su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin && bash -c 'cp -av mediagoblin.ini mediagoblin_local.ini && cp -av paste.ini paste_local.ini'" - mediagoblin
su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin && perl -pi -e 's|.*sql_engine = .*|sql_engine = sqlite:////var/lib/mediagoblin/mediagoblin.db|' mediagoblin_local.ini" - mediagoblin
# Video plugin
apt-get install -yq python-gi python3-gi \
gstreamer1.0-tools \