aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/_common.sh (renamed from scripts/.fonctions)0
-rw-r--r--scripts/backup8
-rw-r--r--scripts/install2
-rw-r--r--scripts/remove8
-rw-r--r--scripts/restore8
-rw-r--r--scripts/upgrade2
6 files changed, 14 insertions, 14 deletions
diff --git a/scripts/.fonctions b/scripts/_common.sh
index 20f9ea0..20f9ea0 100644
--- a/scripts/.fonctions
+++ b/scripts/_common.sh
diff --git a/scripts/backup b/scripts/backup
index e4a5bba..ffcac0e 100644
--- a/scripts/backup
+++ b/scripts/backup
@@ -3,13 +3,13 @@
# Exit on command errors and treat unset variables as an error
set -eu
-if [ ! -e .fonctions ]; then
+if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory
- sudo cp ../settings/scripts/.fonctions ./.fonctions
- sudo chmod a+rx .fonctions
+ sudo cp ../settings/scripts/_common.sh ./_common.sh
+ sudo chmod a+rx _common.sh
fi
# Loads the generic functions usually used in the script
-source .fonctions
+source _common.sh
# Source app helpers
source /usr/share/yunohost/helpers
diff --git a/scripts/install b/scripts/install
index 3d5172f..a8f832c 100644
--- a/scripts/install
+++ b/scripts/install
@@ -3,7 +3,7 @@
# Exit on command errors and treat unset variables as an error
set -eu
-source .fonctions # Loads the generic functions usually used in the script
+source _common.sh # Loads the generic functions usually used in the script
source /usr/share/yunohost/helpers # Source app helpers
CLEAN_SETUP () {
diff --git a/scripts/remove b/scripts/remove
index 1b2c405..6683c07 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -3,13 +3,13 @@
# Exit on command errors and treat unset variables as an error
set -u
-if [ ! -e .fonctions ]; then
+if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory
- sudo cp ../settings/scripts/.fonctions ./.fonctions
- sudo chmod a+rx .fonctions
+ sudo cp ../settings/scripts/_common.sh ./_common.sh
+ sudo chmod a+rx _common.sh
fi
-source .fonctions # Loads the generic functions usually used in the script
+source _common.sh # Loads the generic functions usually used in the script
# Source app helpers
source /usr/share/yunohost/helpers
diff --git a/scripts/restore b/scripts/restore
index 30666df..8ca0b5a 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -4,13 +4,13 @@
# Exit on command errors and treat unset variables as an error
set -eu
-if [ ! -e .fonctions ]; then
+if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory
- sudo cp ../settings/scripts/.fonctions ./.fonctions
- sudo chmod a+rx .fonctions
+ sudo cp ../settings/scripts/_common.sh ./_common.sh
+ sudo chmod a+rx _common.sh
fi
# Loads the generic functions usually used in the script
-source .fonctions
+source _common.sh
# Source app helpers
source /usr/share/yunohost/helpers
diff --git a/scripts/upgrade b/scripts/upgrade
index 50904f1..47b4712 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -4,7 +4,7 @@
set -eu
# Loads the generic functions usually used in the script
-source .fonctions
+source _common.sh
# Source YunoHost helpers
source /usr/share/yunohost/helpers