diff --git a/deploy-cn.sh b/deploy-cn.sh index d533273..2bab13a 100755 --- a/deploy-cn.sh +++ b/deploy-cn.sh @@ -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 < /etc/systemd/system/server-status-client.service [Unit] diff --git a/deploy.sh b/deploy.sh index 7f2d192..8c7242e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 < /etc/systemd/system/server-status-client.service [Unit]