Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit c62f247

Browse files
committed
Merge branch 'mbtamuli-update_eev4_script'
2 parents e3e2f10 + f5343ac commit c62f247

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎scripts/eev4‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ help () {
2626
echo -e "\nCommands: "
2727
echo -e "\tcreate\t\t\tCreate new site"
2828
echo -e "\tdelete\t\t\tDelete existing site"
29+
echo -e "\trestart\t\t\tReload configuration for existing site"
2930
echo -e "\twp\t\t\tUse wp-cli with a site"
3031

3132
echo -e "\nUsage: eev4 create SITE [Options]"
@@ -97,6 +98,12 @@ deleteSingleWordPress() {
9798
fi
9899
}
99100

101+
restartSingleWordPress() {
102+
pushd "$WEBROOT/$SITE_NAME" > /dev/null 2>&1
103+
docker-compose restart
104+
popd > /dev/null 2>&1
105+
}
106+
100107
runWpCliCommand() {
101108
pushd "$WEBROOT/$SITE_NAME" > /dev/null 2>&1
102109
docker-compose exec --user=www-data php wp "${@}"
@@ -247,6 +254,16 @@ while [[ $# -gt 0 ]]; do
247254
exit 0
248255
fi
249256
;;
257+
'restart')
258+
shift
259+
if [[ $# -ne 0 ]]; then
260+
export SITE_NAME="${1}"
261+
restartSingleWordPress
262+
else
263+
echo -e "Please provide name of site."
264+
exit 0
265+
fi
266+
;;
250267
'wp')
251268
shift
252269
if [[ $# -ne 0 ]]; then

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /