aboutsummaryrefslogtreecommitdiff
path: root/scripts/.fonctions
diff options
context:
space:
mode:
authormagikcypress <cyp@rouquin.me>2017-04-16 16:08:42 +0200
committermagikcypress <cyp@rouquin.me>2017-04-16 16:08:42 +0200
commit2be310eefa3f86efba61a6df79fa70edf8cd20e8 (patch)
tree5c6e677f2e7dc8eda3b5f450120d8cc5a72c1d50 /scripts/.fonctions
parent9bddc797b46855a64e0a4e943dd3480f84b8b5a4 (diff)
downloadmastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.tar.gz
mastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.tar.bz2
mastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.zip
[fix] Clear code & fix install
Diffstat (limited to 'scripts/.fonctions')
-rw-r--r--scripts/.fonctions5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/.fonctions b/scripts/.fonctions
index 8abb720..0a148a6 100644
--- a/scripts/.fonctions
+++ b/scripts/.fonctions
@@ -22,7 +22,7 @@ EXIT_PROPERLY () { # Causes the script to stop in the event of an error. And cle
fi
# Compensates the ssowat bug that does not remove the app's input in case of installation error.
- sudo sed -i "\@\"$domain$path/\":@d" /etc/ssowat/conf.json
+ sudo sed -i "\@\"$domain/\":@d" /etc/ssowat/conf.json
if [ "$ynh_version" = "2.2" ]; then
/bin/bash $script_dir/remove
@@ -54,7 +54,7 @@ CHECK_PATH () { # Checks / at the beginning of the path. And his absence at the
}
CHECK_DOMAINPATH () { # Checks the availability of the path and domain.
- sudo yunohost app checkurl $domain$path -a $app
+ sudo yunohost app checkurl $domain -a $app
}
CHECK_FINALPATH () { # Checks that the destination folder is not already in use.
@@ -110,7 +110,6 @@ SETUP_SOURCE () { # Download source, decompress and copu into $final_path
fi
}
-
### REMOVE SCRIPT
REMOVE_NGINX_CONF () { # Delete nginx configuration