1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Fixes backup and restore script

This commit is contained in:
Selamanse 2017-07-18 13:46:22 +02:00
parent cb3a433d77
commit c86d061d7c
2 changed files with 4 additions and 13 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -eu
#=================================================
# GENERIC START
@ -7,17 +8,12 @@
#=================================================
# Exit on command errors and treat access to unset variables as an error
set -eu
ynh_abort_if_errors
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
if [ ! -e _common.sh ]; then
# Get the _common.sh file if it's not in the current directory
sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -eu
#=================================================
# GENERIC START
@ -7,17 +8,11 @@
#=================================================
# Exit on command errors and treat access to unset variables as an error
set -eu
ynh_abort_if_errors
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
if [ ! -e _common.sh ]; then
# Get the _common.sh file if it's not in the current directory
sudo cp ../settings/scripts/_common.sh ./_common.sh
sudo chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers