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:
parent
bf94942904
commit
6c58aa60d6
3 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# Run poller periodically to update your website
|
||||
*/10 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f Code/Daemon/Run.php Cron > /dev/null 2>&1
|
||||
# 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
|
||||
|
|
|
@ -4,6 +4,6 @@ echo " "
|
|||
echo "+++ $(date) +++"
|
||||
echo " "
|
||||
echo "$(date) - Updating website..."
|
||||
(cd /var/www/__APP__ ; util/udall)
|
||||
(cd /var/www/__APP__ ; sudo -u __APP__ util/udall)
|
||||
echo "$(date) - Daily update finished."
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ git config --system --add safe.directory $install_dir
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from GitHub
|
||||
git clone https://codeberg.org/streams/streams.git "$install_dir" --quiet
|
||||
git config pull.rebase false
|
||||
|
||||
touch "$install_dir/php.log"
|
||||
mkdir -p "$install_dir/store"
|
||||
|
@ -81,6 +82,8 @@ chown -R $app:www-data "$install_dir"
|
|||
|
||||
pushd $install_dir
|
||||
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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue