From cfce1f3c1942bb52150137169ddf6be8a5dc1686 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Fri, 6 Apr 2018 19:58:23 +0200 Subject: [PATCH] Rename .fonctions to _common.sh --- scripts/{.fonctions => _common.sh} | 0 scripts/backup | 8 ++++---- scripts/install | 2 +- scripts/remove | 8 ++++---- scripts/restore | 8 ++++---- scripts/upgrade | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) rename scripts/{.fonctions => _common.sh} (100%) diff --git a/scripts/.fonctions b/scripts/_common.sh similarity index 100% rename from scripts/.fonctions rename to 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