Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
e20a24a9
Commit
e20a24a9
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Try to prevent any collisions between upgrades and letsencrypt certificate updates
parent
58b059c8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-git
+3
-0
3 additions, 0 deletions
src/freedombone-utils-git
src/freedombone-utils-web
+9
-0
9 additions, 0 deletions
src/freedombone-utils-web
with
12 additions
and
0 deletions
src/freedombone-utils-git
+
3
−
0
View file @
e20a24a9
...
...
@@ -50,6 +50,9 @@ function git_pull {
git branch
-D
"
$2
"
# check out the new branch
if
!
git checkout
"
$2
"
-b
"
$2
"
;
then
if
[
-f
/tmp/.upgrading
]
;
then
rm
/tmp/.upgrading
fi
echo
$"Unable to checkout
$1
$2
"
exit
72357
fi
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-web
+
9
−
0
View file @
e20a24a9
...
...
@@ -364,6 +364,10 @@ function letsencrypt_renewals {
# a secondary script keeps trying to renew after a failure
{ echo '#!/bin/bash';
echo '';
echo 'if [ -f /tmp/.upgrading ]; then';
echo ' exit 0';
echo 'fi';
echo '';
echo "PROJECT_NAME='${PROJECT_NAME}'";
echo "COMPLETION_FILE=\$HOME/\${PROJECT_NAME}-completed.txt";
...
...
@@ -377,6 +381,11 @@ function letsencrypt_renewals {
echo "}')";
echo " ADMIN_EMAIL_ADDRESS=\$ADMIN_USERNAME@\$HOSTNAME";
echo ' for d in /etc/letsencrypt/live/*/ ; do';
echo '';
echo ' if [ -f /tmp/.upgrading ]; then';
echo ' exit 0';
echo ' fi';
echo '';
echo -n " LETSENCRYPT_DOMAIN=\$(echo \"\$d\" | ";
echo -n "awk -F '/' '{print ";
echo -n "\$5";
...
...
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