diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index a8b29a2d..fd6ababa 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/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 \