diff --git a/deploy.sh b/deploy.sh index 8dbb703..9936797 100755 --- a/deploy.sh +++ b/deploy.sh @@ -40,7 +40,7 @@ apt install --assume-yes \ fuse g++ gcc curl firewalld automake autoconf libtool \ libcurl3-dev libc-ares-dev zlib1g-dev libncurses-dev make python3-aiohttp \ nginx-core certbot python3-certbot-nginx sudo python3-psutil \ - ldc dub libenet-dev + ldc dub libenet-dev python3-bcrypt # Create the user for running the game servers if ! getent passwd ${systemuser}; then diff --git a/scripts/deploy_lix.sh b/scripts/deploy_lix.sh old mode 100644 new mode 100755 diff --git a/scripts/deploy_webserver.sh b/scripts/deploy_webserver.sh index 418661f..c63d808 100755 --- a/scripts/deploy_webserver.sh +++ b/scripts/deploy_webserver.sh @@ -43,7 +43,7 @@ patch --ignore-whitespace /etc/nginx/sites-available/default < /etc/nginx/htpasswd -echo "bcrypt.hashpw('${systempassword}'.encode('utf8'),bcrypt.gensalt(rounds=10))" | python3 >> /etc/nginx/htpasswd +echo -e "import bcrypt\nprint(bcrypt.hashpw('${systempassword}'.encode('utf8'),bcrypt.gensalt(rounds=10)).decode('utf8'))" | python3 >> /etc/nginx/htpasswd systemctl restart nginx