websoft9/apps/roles/bt/templates/init_without_docker.sh

7 lines
279 B
Bash
Raw Normal View History

2022-11-08 11:26:54 +08:00
#!/bin/bash
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
new_password=$1
echo "init_without_docker.sh password=$new_password" >> /tmp/init_debug.txt
sudo sed -i "s/admin123/$new_password/g" /data/apps/bt/password.exp
expect /data/apps/bt/password.exp