[fix] follow up directory move /usr/share/yunohost/helpers

This commit is contained in:
Julien Malik 2016-03-12 00:15:15 +01:00
parent 5b7e16384e
commit 02346776f2
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# -*- shell-script -*-
# TODO : use --regex to validate against a namespace
for helper in $(run-parts --list /usr/share/yunohost/apps/helpers.d 2>/dev/null) ; do
for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) ; do
[ -r $helper ] && . $helper || true
done

View file

@ -1,7 +1,7 @@
backup_dir="$1/data/home"
sudo mkdir -p $backup_dir
. /usr/share/yunohost/apps/helpers
. /usr/share/yunohost/helpers
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then

View file

@ -1,5 +1,5 @@
backup_dir="$1/data/mail"
. /usr/share/yunohost/apps/helpers
. /usr/share/yunohost/helpers
ynh_bind_or_cp /var/mail $backup_dir 1

View file

@ -3,7 +3,7 @@ set -e
force=$1
. /usr/share/yunohost/apps/helpers
. /usr/share/yunohost/helpers
function safe_copy () {
if [[ "$force" == "True" ]]; then