mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] follow up directory move /usr/share/yunohost/helpers
This commit is contained in:
parent
5b7e16384e
commit
02346776f2
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,7 +3,7 @@ set -e
|
|||
|
||||
force=$1
|
||||
|
||||
. /usr/share/yunohost/apps/helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
|
||||
function safe_copy () {
|
||||
if [[ "$force" == "True" ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue