mirror of
https://github.com/YunoHost-Apps/streams_ynh.git
synced 2024-09-03 20:26:20 +02:00
Get ready for 'Code' renaming to 'src'
This commit is contained in:
parent
f3fe592c30
commit
38478cbc07
2 changed files with 8 additions and 1 deletions
|
@ -5,7 +5,7 @@ name = "Streams"
|
||||||
description.en = "Open source fediverse server"
|
description.en = "Open source fediverse server"
|
||||||
description.fr = "Serveur fediverse open source"
|
description.fr = "Serveur fediverse open source"
|
||||||
|
|
||||||
version = "24.02.18~ynh1"
|
version = "24.02.18~ynh2"
|
||||||
|
|
||||||
maintainers = ["Papa Dragon"]
|
maintainers = ["Papa Dragon"]
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,13 @@ chown $app:$app "$install_dir/.htconfig.php"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setuping cron job..." --weight=1
|
ynh_script_progression --message="Setuping cron job..." --weight=1
|
||||||
|
|
||||||
|
# We're ready for the moment when 'Code' is renamed 'src'
|
||||||
|
# Check for renaming of 'Code' folder to 'src'
|
||||||
|
if [ -d /var/www/__APP__/src ]
|
||||||
|
then
|
||||||
|
sed "/finished/ i\# 'Code' folder was renamed 'src'\nsed -i \'s\/Code\/src\/\' \/etc\/cron.d\/__APP__" conf/daily-update.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up cron job
|
# Set up cron job
|
||||||
ynh_add_config --template="../conf/cronjobs" --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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue