mirror of
https://github.com/YunoHost-Apps/streams_ynh.git
synced 2024-09-03 20:26:20 +02:00
Playing with users & permissions again
This commit is contained in:
parent
72898eec9d
commit
e79d7bab15
3 changed files with 4 additions and 5 deletions
|
@ -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 * * * root /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1
|
30 05 * * * __APP__ /bin/bash __DATA_DIR__/daily-update.sh >> __DATA_DIR__/daily-updates.log 2>&1
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
echo " "
|
echo " "
|
||||||
echo "+++ $(date) +++"
|
echo "+++ $(date) +++"
|
||||||
echo " "
|
echo " "
|
||||||
echo "$(date) - db size."
|
echo "$(date) - Updating website..."
|
||||||
du -h /var/lib/mysql/__APP__
|
|
||||||
#
|
|
||||||
(cd /var/www/__APP__ ; sudo -u streams util/udall)
|
(cd /var/www/__APP__ ; sudo -u streams util/udall)
|
||||||
echo "$(date) - Daily update finished."
|
echo "$(date) - Daily update finished."
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@ mkdir -p "$install_dir/store"
|
||||||
mkdir -p "$install_dir/cache/smarty3"
|
mkdir -p "$install_dir/cache/smarty3"
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -78,6 +77,8 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Pulling in external libraries with Composer..."
|
ynh_script_progression --message="Pulling in external libraries with Composer..."
|
||||||
|
|
||||||
ynh_install_composer --workdir="$install_dir"
|
ynh_install_composer --workdir="$install_dir"
|
||||||
|
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
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue