update-ttrss.sh: Fixes for update_common().
This commit is contained in:
parent
7f9630f467
commit
aa50559ac7
@ -52,23 +52,15 @@ update_theme_feedly()
|
|||||||
update_common()
|
update_common()
|
||||||
{
|
{
|
||||||
echo "Updating: Updating permissions"
|
echo "Updating: Updating permissions"
|
||||||
for dir in /etc/nginx /etc/php5 /var/log /var/lib/nginx /tmp /etc/services.d; do
|
for CUR_DIR in /etc/nginx /etc/php5 /var/log /var/lib/nginx /tmp /etc/services.d; do
|
||||||
if $(find $dir ! -user $UID -o ! -group $GID | egrep '.' -q); then
|
chown -R $UID:$GID ${CUR_DIR}
|
||||||
echo "Updating: Updating permissions in $dir..."
|
|
||||||
chown -R $UID:$GID $dir
|
|
||||||
else
|
|
||||||
echo "Updating: Permissions in $dir are correct"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
chown -R www-data:www-data ${TTRSS_PATH}
|
chown -R www-data:www-data ${TTRSS_PATH}
|
||||||
|
|
||||||
echo "Updating: updating permissions done"
|
echo "Updating: Updating permissions done"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Update: Updating rolling release ..."
|
|
||||||
echo "Update: Stopping all ..."
|
|
||||||
|
|
||||||
update_ttrss
|
update_ttrss
|
||||||
update_plugin_mobilize
|
update_plugin_mobilize
|
||||||
update_plugin_newsplus
|
update_plugin_newsplus
|
||||||
@ -81,6 +73,7 @@ echo "Update: Done"
|
|||||||
if [ "$1" != "--no-start" ]; then
|
if [ "$1" != "--no-start" ]; then
|
||||||
echo "Update: Starting all ..."
|
echo "Update: Starting all ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "--wait-exit" ]; then
|
if [ "$1" = "--wait-exit" ]; then
|
||||||
UPDATE_WAIT_TIME=$2
|
UPDATE_WAIT_TIME=$2
|
||||||
if [ -z "$UPDATE_WAIT_TIME" ]; then
|
if [ -z "$UPDATE_WAIT_TIME" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user