Update cronicle-v5-install.sh

This commit is contained in:
tteckster 2023-01-11 19:52:08 -05:00 committed by GitHub
parent 5c4cc1a4a5
commit daa747e66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ msg_info "Installing Node.js"
$STD apt-get install -y nodejs $STD apt-get install -y nodejs
msg_ok "Installed Node.js" msg_ok "Installed Node.js"
msg_info "Installing Cronicle Master" msg_info "Installing Cronicle Primary Server"
LATEST=$(curl -sL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4) LATEST=$(curl -sL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
mkdir -p /opt/cronicle mkdir -p /opt/cronicle
@ -111,7 +111,7 @@ $STD /opt/cronicle/bin/control.sh start
$STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled $STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled
chmod 775 /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled
$STD update-rc.d cronicled defaults $STD update-rc.d cronicled defaults
msg_ok "Installed Cronicle Master" msg_ok "Installed Cronicle Primary Server"
PASS=$(grep -w "root" /etc/shadow | cut -b6) PASS=$(grep -w "root" /etc/shadow | cut -b6)
if [[ $PASS != $ ]]; then if [[ $PASS != $ ]]; then