Skip to content

Commit

Permalink
remove config txt output
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 11, 2017
1 parent ef402e7 commit c20649d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions etc/library.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -189,7 +187,6 @@ function config()
done

INSTALLATION_CODE="$( sed "$SEDRULE" "$INSTALL_SCRIPT" )"
[[ "$CFGOUT" != "" ]] && echo -e "$CONFIG" > "$CFGOUT"
}

function install_script()
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Expand Up @@ -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
#(
Expand Down

0 comments on commit c20649d

Please sign in to comment.