From c20649d6257ad749b15aee9f6e88970af153ea8b Mon Sep 17 00:00:00 2001 From: nachoparker Date: Mon, 11 Sep 2017 14:35:32 +0200 Subject: [PATCH] remove config txt output --- etc/library.sh | 3 --- update.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/library.sh b/etc/library.sh index 6ecb95e65..8846aba07 100755 --- a/etc/library.sh +++ b/etc/library.sh @@ -10,7 +10,6 @@ IMGNAME=$( basename "$IMGFILE" .img )_$( basename "$INSTALL_SCRIPT" .sh ).img -CFGOUT=config_$( basename "$INSTALL_SCRIPT" .sh ).txt DBG=x # $IMGOUT will contain the name of the last step @@ -99,7 +98,6 @@ set -e$DBG " echo "Launching installation" echo -e "$PREINST_CODE\n$INSTALLATION_CODE\n$INSTALLATION_STEPS" | ssh_pi "$IP" || { echo "Installation to $IP failed" && return 1; } - echo "configuration saved to $CFGOUT" } function launch_installation_qemu() @@ -189,7 +187,6 @@ function config() done INSTALLATION_CODE="$( sed "$SEDRULE" "$INSTALL_SCRIPT" )" - [[ "$CFGOUT" != "" ]] && echo -e "$CONFIG" > "$CFGOUT" } function install_script() diff --git a/update.sh b/update.sh index 6dae267e6..cb382e6b4 100755 --- a/update.sh +++ b/update.sh @@ -145,6 +145,9 @@ EOF # images are now tagged test -f /usr/local/etc/ncp-baseimage || echo "untagged" > /usr/local/etc/ncp-baseimage +# remove artifacts +rm -f /usr/local/etc/nextcloudpi-config.d/config_.txt + # restart PHP to get updates in the ncp-web # FIXME: php doesn't come up if run from ncp-web #(