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

We should be good now

This commit is contained in:
dragondaddy 2023-10-24 21:28:46 +02:00
parent bf94942904
commit 6c58aa60d6
3 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# Run poller periodically to update your website # Run poller periodically to update your website
*/10 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f Code/Daemon/Run.php Cron > /dev/null 2>&1 */10 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f Code/Daemon/Run.php Cron > /dev/null 2>&1
# Daily software update job # Daily software update job
30 05 * * * __APP__ /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1 30 05 * * * root /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1

View file

@ -4,6 +4,6 @@ echo " "
echo "+++ $(date) +++" echo "+++ $(date) +++"
echo " " echo " "
echo "$(date) - Updating website..." echo "$(date) - Updating website..."
(cd /var/www/__APP__ ; util/udall) (cd /var/www/__APP__ ; sudo -u __APP__ util/udall)
echo "$(date) - Daily update finished." echo "$(date) - Daily update finished."

View file

@ -52,6 +52,7 @@ git config --system --add safe.directory $install_dir
# Download, check integrity, uncompress and patch the source from GitHub # Download, check integrity, uncompress and patch the source from GitHub
git clone https://codeberg.org/streams/streams.git "$install_dir" --quiet git clone https://codeberg.org/streams/streams.git "$install_dir" --quiet
git config pull.rebase false
touch "$install_dir/php.log" touch "$install_dir/php.log"
mkdir -p "$install_dir/store" mkdir -p "$install_dir/store"
@ -81,6 +82,8 @@ chown -R $app:www-data "$install_dir"
pushd $install_dir pushd $install_dir
ynh_exec_as $app util/add_addon_repo https://codeberg.org/streams/streams-addons.git zaddons 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 popd
#================================================= #=================================================