aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/remove6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/remove b/scripts/remove
index 373d028..1b2c405 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -3,6 +3,12 @@
# Exit on command errors and treat unset variables as an error
set -u
+if [ ! -e .fonctions ]; then
+ # Get file fonction if not been to the current directory
+ sudo cp ../settings/scripts/.fonctions ./.fonctions
+ sudo chmod a+rx .fonctions
+fi
+
source .fonctions # Loads the generic functions usually used in the script
# Source app helpers
source /usr/share/yunohost/helpers