mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-22 15:18:00 +08:00
✨ 修复脚本执行错误
This commit is contained in:
parent
87418edeea
commit
b5bf2c1de6
@ -75,7 +75,7 @@ echo "Creating the systemd service"
|
||||
|
||||
# generate random id
|
||||
# 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
|
||||
[Unit]
|
||||
|
@ -74,7 +74,7 @@ echo "Creating the systemd service"
|
||||
|
||||
# generate random id
|
||||
# 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
|
||||
[Unit]
|
||||
|
Loading…
Reference in New Issue
Block a user