1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/streams_ynh.git synced 2024-09-03 20:26:20 +02:00

Upgrade script, again

This commit is contained in:
dragondaddy 2023-11-12 23:13:17 +01:00
parent 6eb0d63928
commit 4f2444c884

View file

@ -83,6 +83,18 @@ then
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
chmod -R 775 $install_dir/store $install_dir/cache chmod -R 775 $install_dir/store $install_dir/cache
#=================================================
# ADDONS
#=================================================
ynh_script_progression --message="Installing addons..."
pushd $install_dir
ynh_exec_as $app git config pull.rebase false
ynh_exec_as $app util/add_addon_repo https://codeberg.org/streams/streams-addons.git zaddons
cd /var/www/$app/extend/addon/zaddons
ynh_exec_as $app git config pull.rebase false
popd
fi fi
fi fi
@ -119,12 +131,15 @@ chown $app:$app "$install_dir/.htconfig.php"
#================================================= #=================================================
# UPGRADE CRON JOB # UPGRADE CRON JOB
#================================================= #=================================================
ynh_script_progression --message="Upgrading cron job..." --weight=1 ynh_script_progression --message="Setuping cron job..." --weight=1
# Set up cron job # Set up cron job
ynh_add_config --template="../conf/poller-cron" --destination="/etc/cron.d/$app" ynh_add_config --template="../conf/cronjobs" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app" chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app"
# Add daily update script
ynh_add_config --template="../conf/daily-update.sh" --destination="/home/yunohost.app/$app/daily-update.sh"
chown root: "/home/yunohost.app/$app/daily-update.sh"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION