mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 03:00:49 +02:00
Some cleanup for Knots
This commit is contained in:
parent
62b1aa0e44
commit
d1470392f1
@ -617,7 +617,7 @@ else
|
||||
echo "Provisioning Mempool Explorer - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
# Bicoin Knots
|
||||
# Bitcoin Knots
|
||||
if [ "${knots}" = "on" ]; then
|
||||
echo "Provisioning Bitcoin Knots - run config script" >> ${logFile}
|
||||
/home/admin/_cache.sh set message "Setup Bitcoin Knots"
|
||||
|
@ -70,9 +70,6 @@ if [ "${isInstalled}" == "1" ]; then
|
||||
|
||||
# gather address info (whats needed to call the app)
|
||||
localIP=$(hostname -I | awk '{print $1}')
|
||||
toraddress=$(sudo cat /mnt/hdd/tor/${APPID}/hostname 2>/dev/null)
|
||||
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
||||
|
||||
fi
|
||||
|
||||
# if the action parameter `status` was called - just stop here and output all
|
||||
@ -118,9 +115,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
||||
echo "# Installing ${APPID} ..."
|
||||
|
||||
# check and install NodeJS - if already installed it will skip
|
||||
/home/admin/config.scripts/bonus.nodejs.sh on
|
||||
|
||||
echo "# create user"
|
||||
# If the user is intended to be loeed in to add '--shell /bin/bash'
|
||||
# and copy the skeleton files
|
||||
@ -181,27 +175,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
|
||||
fi
|
||||
|
||||
##########################
|
||||
# PRESTART
|
||||
##########################
|
||||
|
||||
if [ "$1" = "prestart" ]; then
|
||||
|
||||
# needs to be run as the app user - stop if not run as the app user
|
||||
# keep in mind that in the prestart section you cannot use `sudo` command
|
||||
if [ "$USER" != "${APPID}" ]; then
|
||||
echo "# FAIL: run as user ${APPID}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "## PRESTART CONFIG START for ${APPID} (called by systemd prestart)"
|
||||
|
||||
echo "# no need for adhoc config needed so far"
|
||||
|
||||
echo "## PRESTART CONFIG DONE for ${APPID}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
###########################################
|
||||
# OFF / UNINSTALL
|
||||
###########################################
|
||||
|
Loading…
Reference in New Issue
Block a user