worker: Fix wp command
All checks were successful
Build Docker / Build Master (push) Successful in 25s
Build Docker / Build Bot (push) Successful in 24s

This commit is contained in:
Nathan Woodburn 2023-08-17 13:12:51 +10:00
parent c2612c815c
commit 1f316e3a94
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -22,10 +22,11 @@ def new_site():
# Add site to file # Add site to file
sites_file = open('sites.txt', 'a') sites_file = open('sites.txt', 'a')
sites_file.write(domain + '\n') sites_file.write(domain + '\n')
sites_file.close()
# Setup site run wp.sh # Setup site run wp.sh
# Get num sites # Get num sites
os.system('bash wp.sh ' + domain + ' '+ count) os.system('bash wp.sh ' + domain + ' '+ str(count))
# Return the domain and the number of sites # Return the domain and the number of sites
return jsonify({'domain': domain, 'count': count}) return jsonify({'domain': domain, 'count': count})