Updated snowflake-install.sh

This commit is contained in:
Steven Seifried 2022-10-09 20:44:15 +02:00
parent 3f9d840579
commit 81129990df
No known key found for this signature in database
GPG key ID: 174371A9356D63E5

View file

@ -101,6 +101,11 @@ WantedBy=multi-user.target
EOF EOF
msg_ok "Created Service" msg_ok "Created Service"
msg_info "Enable and start Service"
systemctl daemon-reload
systemctl enable --now snowflake.service
msg_ok "Enabled and started Service"
PASS=$(grep -w "root" /etc/shadow | cut -b6); PASS=$(grep -w "root" /etc/shadow | cut -b6);
if [[ $PASS != $ ]]; then if [[ $PASS != $ ]]; then
msg_info "Customizing Container" msg_info "Customizing Container"
@ -116,7 +121,6 @@ ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,3840
EOF EOF
systemctl daemon-reload systemctl daemon-reload
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
systemctl enable --now snowflake.service
msg_ok "Customized Container" msg_ok "Customized Container"
msg_info "Cleaning up" msg_info "Cleaning up"