aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJean-Baptiste Holcroft <jean-baptiste@holcroft.fr>2018-04-06 19:58:23 +0200
committerJean-Baptiste Holcroft <jean-baptiste@holcroft.fr>2018-04-06 19:58:23 +0200
commitcfce1f3c1942bb52150137169ddf6be8a5dc1686 (patch)
tree7387c0c94664bce69106e9e51301e4124de5b4f3 /scripts
parent1d7613889c5e0ef976e3ed63e4ad82516508f5a9 (diff)
downloadmastodon_ynh-cfce1f3c1942bb52150137169ddf6be8a5dc1686.tar.gz
mastodon_ynh-cfce1f3c1942bb52150137169ddf6be8a5dc1686.tar.bz2
mastodon_ynh-cfce1f3c1942bb52150137169ddf6be8a5dc1686.zip
Rename .fonctions to _common.sh
Diffstat (limited to 'scripts')
-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