Skip to content

Commit 9563367

Browse files
committed
library.sh: Prevent systemd pager from blocking script execution
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
1 parent a799eec commit 9563367

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

etc/library.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export BINDIR=/usr/local/bin/ncp
1313
export NCDIR=/var/www/nextcloud
1414
export ncc=/usr/local/bin/ncc
1515
export NCPCFG=${NCPCFG:-etc/ncp.cfg}
16+
# Prevent systemd pager from blocking script execution
17+
export SYSTEMD_PAGER=
1618

1719
[[ -f "$NCPCFG" ]] || export NCPCFG=/usr/local/etc/ncp.cfg
1820
[[ -f "$NCPCFG" ]] || { echo "$NCPCFG not found" >2; exit 1; }

updates/1.47.0.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
source /usr/local/etc/library.sh
6+
57
# Stop metrics services if running
68
for svc in prometheus-node-exporter ncp-metrics-exporter
79
do
@@ -10,7 +12,6 @@ do
1012
done
1113

1214
# Reinstall metrics services
13-
source /usr/local/etc/library.sh
1415
install_app metrics
1516
is_active_app metrics && (
1617
export METRICS_SKIP_PASSWORD_CONFIG=true

0 commit comments

Comments
 (0)