1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Rename .fonctions to _common.sh

This commit is contained in:
Jean-Baptiste Holcroft 2018-04-06 19:58:23 +02:00
parent 1d7613889c
commit cfce1f3c19
6 changed files with 14 additions and 14 deletions

View file

@ -3,13 +3,13 @@
# Exit on command errors and treat unset variables as an error # Exit on command errors and treat unset variables as an error
set -eu set -eu
if [ ! -e .fonctions ]; then if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory # Get file fonction if not been to the current directory
sudo cp ../settings/scripts/.fonctions ./.fonctions sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx .fonctions sudo chmod a+rx _common.sh
fi fi
# Loads the generic functions usually used in the script # Loads the generic functions usually used in the script
source .fonctions source _common.sh
# Source app helpers # Source app helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -3,7 +3,7 @@
# Exit on command errors and treat unset variables as an error # Exit on command errors and treat unset variables as an error
set -eu 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 source /usr/share/yunohost/helpers # Source app helpers
CLEAN_SETUP () { CLEAN_SETUP () {

View file

@ -3,13 +3,13 @@
# Exit on command errors and treat unset variables as an error # Exit on command errors and treat unset variables as an error
set -u set -u
if [ ! -e .fonctions ]; then if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory # Get file fonction if not been to the current directory
sudo cp ../settings/scripts/.fonctions ./.fonctions sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx .fonctions sudo chmod a+rx _common.sh
fi 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 app helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -4,13 +4,13 @@
# Exit on command errors and treat unset variables as an error # Exit on command errors and treat unset variables as an error
set -eu set -eu
if [ ! -e .fonctions ]; then if [ ! -e _common.sh ]; then
# Get file fonction if not been to the current directory # Get file fonction if not been to the current directory
sudo cp ../settings/scripts/.fonctions ./.fonctions sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx .fonctions sudo chmod a+rx _common.sh
fi fi
# Loads the generic functions usually used in the script # Loads the generic functions usually used in the script
source .fonctions source _common.sh
# Source app helpers # Source app helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -4,7 +4,7 @@
set -eu set -eu
# Loads the generic functions usually used in the script # Loads the generic functions usually used in the script
source .fonctions source _common.sh
# Source YunoHost helpers # Source YunoHost helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers