Merge remote-tracking branch 'origin/main'

This commit is contained in:
Saeed Vaziry
2023-08-06 18:32:13 +02:00
362 changed files with 3402 additions and 2769 deletions

View File

@ -5,6 +5,18 @@ export NEEDRESTART_MODE=a
export V_USERNAME=vito
export V_PASSWORD=$(openssl rand -base64 12)
echo "Enter the domain you want to install Vito? (your-domain.com)"
read V_DOMAIN
echo "Enter your email address:"
read V_ADMIN_EMAIL
echo "Enter your password:"
read V_ADMIN_PASSWORD
if [[ -z "${V_DOMAIN}" ]]; then
echo "Error: V_DOMAIN environment variable is not set."
exit 1
@ -194,7 +206,6 @@ command=php /home/${V_USERNAME}/${V_DOMAIN}/artisan queue:work --sleep=3 --backo
autostart=1
autorestart=1
user=vito
numprocs=1
redirect_stderr=true
stdout_logfile=/home/${V_USERNAME}/.logs/workers/worker.log
stopwaitsecs=3600
@ -210,6 +221,9 @@ supervisorctl reread
supervisorctl update
supervisorctl start worker:*
# make the update file executable
chmod +x /home/${V_USERNAME}/${V_DOMAIN}/update.sh
# cleanup
chown -R ${V_USERNAME}:${V_USERNAME} /home/${V_USERNAME}