mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-26 00:55:19 +08:00
✨ 修复脚本执行错误
This commit is contained in:
parent
87418edeea
commit
b5bf2c1de6
@ -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]
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user