We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently this script is used via cron on patchew.org and next.patchew.org to auto-update the servers:
patchew.org
next.patchew.org
#!/bin/bash set -e BRANCH=master INSTANCE=patchew-server cd ~/patchew.git git fetch cur=$(git rev-parse $BRANCH) if test -f ~/.$INSTANCE-head; then prev=$(cat ~/.$INSTANCE-head) fi if [ "$cur" = "$prev" ]; then exit 0 fi rm -rf /tmp/$INSTANCE-deploy2 git clone -b $BRANCH ~/patchew.git /tmp/$INSTANCE-deploy2 cd /tmp/$INSTANCE-deploy2 ./scripts/deploy -s root@localhost -e 'instance_name="'"$INSTANCE"'" superuser_name="" superuser_pass=""' echo $cur > ~/.$INSTANCE-head
The script should be moved to an Ansible playbook.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently this script is used via cron on
patchew.org
andnext.patchew.org
to auto-update the servers:The script should be moved to an Ansible playbook.
The text was updated successfully, but these errors were encountered: