From e544299b754a85cf37985c7ccd13d3cb13e401fa Mon Sep 17 00:00:00 2001 From: adminsopel Date: Fri, 1 May 2026 09:11:42 +0200 Subject: [PATCH] Fix YunoHost common script path --- scripts/backup | 2 +- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/backup b/scripts/backup index 7427db1..e21b91a 100755 --- a/scripts/backup +++ b/scripts/backup @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -source ./scripts/_common.sh +source ./_common.sh mkdir -p "$YNH_BACKUP_DIR" tar -C / -czf "$YNH_BACKUP_DIR/albumik-data.tar.gz" "${data_dir#/}" "${config_dir#/}" "${install_dir#/}" 2>/dev/null || true diff --git a/scripts/install b/scripts/install index 4954f96..8cd40be 100755 --- a/scripts/install +++ b/scripts/install @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -source ./scripts/_common.sh +source ./_common.sh # YunoHost install args # packaging v2 passes these variables to scripts. diff --git a/scripts/remove b/scripts/remove index 1846286..695509b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -source ./scripts/_common.sh +source ./_common.sh domain=$(yunohost app setting "$app" domain 2>/dev/null || echo "") diff --git a/scripts/restore b/scripts/restore index f3f1dcc..ca9f57f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -source ./scripts/_common.sh +source ./_common.sh if [ -f "$YNH_BACKUP_DIR/albumik-data.tar.gz" ]; then tar -C / -xzf "$YNH_BACKUP_DIR/albumik-data.tar.gz" diff --git a/scripts/upgrade b/scripts/upgrade index 6043240..26043ba 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,6 +1,6 @@ #!/bin/bash set -euo pipefail -source ./scripts/_common.sh +source ./_common.sh systemctl stop "$app" 2>/dev/null || true mkdir -p "$install_dir"