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:
parent
b5e4bea5de
commit
12b078d680
4 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
app=APPNAMETOCHANGE
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
|
||||||
new_users=$2
|
new_users=$2
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=APPNAMETOCHANGE
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
myuser=$1
|
myuser=$1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=APPNAMETOCHANGE
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
myuser=$1
|
myuser=$1
|
||||||
|
|
|
@ -72,6 +72,11 @@ sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@ALIASTOCHANGE@$FINAL_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
|
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
|
#install update cron
|
||||||
# Add cron job
|
# Add cron job
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
|
|
Loading…
Add table
Reference in a new issue