修复脚本执行错误

This commit is contained in:
远野千束 2024-10-05 23:08:40 +08:00
parent 87418edeea
commit b5bf2c1de6
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ echo "Creating the systemd service"
# generate random id # generate random id
# shellcheck disable=SC2002 # shellcheck disable=SC2002
id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
bash -c "cat <<EOF > /etc/systemd/system/server-status-client.service bash -c "cat <<EOF > /etc/systemd/system/server-status-client.service
[Unit] [Unit]

View File

@ -74,7 +74,7 @@ echo "Creating the systemd service"
# generate random id # generate random id
# shellcheck disable=SC2002 # shellcheck disable=SC2002
id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
bash -c "cat <<EOF > /etc/systemd/system/server-status-client.service bash -c "cat <<EOF > /etc/systemd/system/server-status-client.service
[Unit] [Unit]