Adds hotfix to remove static git images
This commit is contained in:
parent
f56578d48f
commit
a20582620c
1 changed files with 28 additions and 0 deletions
28
hotfixes/2015-01-12-remove-staticgit.sh
Normal file
28
hotfixes/2015-01-12-remove-staticgit.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
domains=( domain1 domain2 )
|
||||
|
||||
# START
|
||||
for domain in "${domains[@]}"
|
||||
do
|
||||
cp -R /data/runtime/domains/$domain/static-git /data/domains/$domain/static
|
||||
systemctl stop static-git@$domain
|
||||
systemctl start static@$domain
|
||||
systemctl list-units | grep $domain | grep failed
|
||||
done
|
||||
# STOP
|
||||
|
||||
# ROLLBACK START
|
||||
for domain in "${domains[@]}"
|
||||
do
|
||||
systemctl stop static@$domain
|
||||
systemctl start static-git@$domain
|
||||
done
|
||||
# ROLLBACK STOP
|
||||
|
||||
# CLEAN START
|
||||
for domain in "${domains[@]}"
|
||||
do
|
||||
systemctl disable static-git@$domain
|
||||
systemctl enable static@$domain
|
||||
rm -rf /data/domains/$domain/static-git
|
||||
done
|
||||
# CLEAN STOP
|
Loading…
Reference in a new issue