1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

remplace app instance name into hooks

This commit is contained in:
Clément 2018-03-18 16:41:16 +01:00
parent b5e4bea5de
commit 12b078d680
4 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,5 @@
#!/bin/bash
app=$YNH_APP_INSTANCE_NAME
app=APPNAMETOCHANGE
new_users=$2
app_path=/var/www/$app

View file

@ -1,5 +1,5 @@
#!/bin/bash
app=$YNH_APP_INSTANCE_NAME
app=APPNAMETOCHANGE
app_path=/var/www/$app
myuser=$1

View file

@ -1,5 +1,5 @@
#!/bin/bash
app=$YNH_APP_INSTANCE_NAME
app=APPNAMETOCHANGE
app_path=/var/www/$app
myuser=$1

View file

@ -72,6 +72,11 @@ sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@ALIASTOCHANGE@$FINAL_PATH/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
#update hook for multi instance
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_app_addaccess
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_create
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_delete
#install update cron
# Add cron job
cron_path="/etc/cron.d/$app"