Skip to content

Commit 96c534a

Browse files
committed
refact: added -f to rm
1 parent 7a8259a commit 96c534a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎system/cuos/api.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ EOF
8989
systemctl restart cuos-app-init.service
9090
fi
9191
;;
92+
"pull")
93+
echo "Pull not jet implemented."
94+
;;
9295
"trigger-update")
9396
docker exec cuos-app /api/cuos-trigger-update
9497
R="$?"

‎system/cuos/init.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ configure_ssh_server() {
441441
[[ -f "/etc/ssh/sshd_not_to_be_run" ]] && ssh_enabled_before="false"
442442
if [[ "${ssh_enabled}" == "true" ]]; then
443443
report_info "cuos:init:ssh_server" "Start SSH server"
444-
rm /etc/ssh/sshd_not_to_be_run
444+
rm -f /etc/ssh/sshd_not_to_be_run
445445
iptables -I INPUT -p tcp --dport 4222 -j ACCEPT 2>/dev/null || true
446446
else
447447
touch /etc/ssh/sshd_not_to_be_run

0 commit comments

Comments
 (0)