Update cronicle-install.sh

fix unbound variable
This commit is contained in:
tteckster 2023-04-10 05:49:23 -04:00 committed by GitHub
parent a472080127
commit d21c70bc85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ $STD tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST
$STD npm install
$STD node bin/build.js dist
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
if [[ $SERV == "y" ]]; then $STD /opt/cronicle/bin/control.sh setup; fi
$STD /opt/cronicle/bin/control.sh setup
$STD /opt/cronicle/bin/control.sh start
$STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled
chmod 775 /etc/init.d/cronicled