Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose.libre.sh
Commits
bfc47b99
Commit
bfc47b99
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Adds hotfix for applying code to merge into lamp unit file
parent
a2058262
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hotfixes/2015-01-12-merge-unit-files.sh
+54
-0
54 additions, 0 deletions
hotfixes/2015-01-12-merge-unit-files.sh
with
54 additions
and
0 deletions
hotfixes/2015-01-12-merge-unit-files.sh
0 → 100644
+
54
−
0
View file @
bfc47b99
domains
=(
domain1 domain2
)
# START
echo
"APPLICATION=wordpress"
>
/tmp/wordpress_env
echo
"VOLUME=/app/wp-content"
>>
/tmp/wordpress_env
echo
"EMAIL=test@test.org"
>>
/tmp/wordpress_env
docker pull ibuildthecloud/systemd-docker
for
domain
in
"
${
domains
[@]
}
"
do
cp
/tmp/wordpress_env /data/domains/
$domain
/.env
systemctl stop wordpress@
$domain
systemctl disable wordpress@
$domain
mv
/data/domains/
$domain
/wordpress/wp-content /data/domains/
$domain
/wordpress/data
done
cd
/data/indiehosters
git pull
cp
/data/indiehosters/unit-files/
*
/etc/systemd/system
&&
sudo
systemctl daemon-reload
docker pull pierreozoux/wordpress
for
domain
in
"
${
domains
[@]
}
"
do
systemctl start lamp@
$domain
systemctl
enable
lamp@
$domain
done
docker pull pierreozoux/known
# put the right email in each folder
# STOP
# ROLLBACK START
cd
/data/indiehosters
git checkout 2c71084d502c05be220dd2de00acfd0c333bc7ff
cp
/data/indiehosters/unit-files/
*
/etc/systemd/system
&&
sudo
systemctl daemon-reload
cd
dockerfiles/services/wordpress/
docker build
-t
pierreozoux/wordpress
.
for
domain
in
"
${
domains
[@]
}
"
do
mv
/data/domains/
$domain
/wordpress/data /data/domains/
$domain
/wordpress/wp-content
systemctl start wordpress@
$domain
systemctl
enable
wordpress@
$domain
done
# ROLLBACK STOP
# CLEAN START
rm
/etc/systemd/system/static-
*
rm
/etc/systemd/system/wordpress
*
rm
/etc/systemd/system/known
*
rm
/etc/systemd/system/mysql-importer@.service
# CLEAN STOP
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment