mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Remplacer + bug sur upgrade
This commit is contained in:
parent
ac3c050491
commit
9fbcdb87bd
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ set -eu
|
|||
backup_dir=$1
|
||||
|
||||
# The parameter $2 is theid of the app instance
|
||||
app=$2
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
|
|
@ -8,7 +8,7 @@ set -eu
|
|||
backup_dir=$1
|
||||
|
||||
# The parameter $2 is the id of the app instance ex: ynhexample__2
|
||||
app=$2
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
|
|
@ -33,8 +33,8 @@ db_name=$app
|
|||
CHECK_MD5_CONFIG "connect.php" "$final_path/config/connect.php" # Created a backup of the config file if it was changed.
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf*
|
||||
sed -i "s@__PATHTOCHANGE__@$app@g" ../conf/nginx.conf*
|
||||
sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
|
||||
|
||||
if [ $is_public = "Yes" ];
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue