-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Step 4 to clean up after Backdrop Core Upgrade. Tidied up the s…
…cripts a little
- Loading branch information
francis
committed
Mar 8, 2023
1 parent
f7713ce
commit ccc8086
Showing
18 changed files
with
74 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# | ||
# Script to run Step 4 in Backdrop Upgrade | ||
# | ||
SECONDS=0 | ||
ansible-playbook ~/ansible/backdrop_upgrade_made_easy/playbooks/backdrop_step_4.yaml -v | ||
ELAPSED="Elapsed: (($SECONDS / 3600))hrs ((($SECONDS / 60) % 60))min (($SECONDS % 60))sec" | ||
echo "${ELAPSED}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/bash | ||
# | ||
# Script as Step 3 in Upgrading Backdrop | ||
# | ||
# | ||
# | ||
PATH=$HOME/.local/bin:$HOME/bin:$PATH | ||
pattern="$1" | ||
result=0 | ||
#for _dir in "${HOME}"/FG-Docs/public_html/*"${pattern}"; do | ||
for _dir in "${HOME}"/apps/*"${pattern}"; do | ||
echo "${_dir}" | ||
cd "${_dir}" | ||
git status | ||
git checkout -b upgrade | ||
git pull origin master | ||
./importConfigSync | ||
echo "${_dir}" | ||
cd "${_dir}" || exit | ||
git status | ||
git checkout -b upgrade | ||
git pull origin master | ||
./importConfigSync | ||
done | ||
exit ${result} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Script as Step 4 in Upgrading Backdrop to clean up temporary folders | ||
# | ||
# | ||
PATH=$HOME/.local/bin:$HOME/bin:$PATH | ||
pattern="$1" | ||
result=0 | ||
for _dir in "${HOME}"/FG-Docs/public_html/*"${pattern}/web"; do | ||
#for _dir in "${HOME}"/apps/*"${pattern}"; do | ||
echo "${_dir}" | ||
cd "${_dir}" || exit | ||
rm -fr "core_*" | ||
done | ||
exit ${result} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# PlayBook to execute Stage 4 in the Backdrop Upgrade | ||
# | ||
- hosts: backdrop_servers_local | ||
gather_facts: true | ||
tasks: | ||
- name: Script to Cleanup temporary folders after Core Upgrade | ||
ansible.builtin.script: ~/ansible/backdrop_upgrade_made_easy/backdrop_step_4.sh local |