Skip to content

Commit b306058

Browse files
committed
added certbotargs to output. added touch for mtime update
1 parent d8b2cdf commit b306058

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

update.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ do
5353
git checkout -f "${branchname}"
5454
mkdir -p "${branchpath}"
5555
git archive "${branchname}" \
56-
| tar -xC "$branchpath"
56+
| tar -xC "${branchpath}"
57+
# Ensure branchpath mtime is up-to-date
58+
touch ${branchpath}/.gitignore
5759
cp "${resourcedir}/default" \
5860
"/etc/apache2/sites-enabled/${branchid}.conf"
5961
perl -p -i -e "s/MAGICALPONY/${branchid}/g" \
@@ -72,7 +74,11 @@ done
7274
popd
7375
echo
7476

75-
echo '# cerbot'
77+
echo '# cerbotargs:'
78+
echo "${certbotargs}"
79+
echo
80+
echo '# run cerbot'
81+
echo
7682
# Get any new certificates, incorporate old one, refresh expiring, install any
7783
# new http->https redirects, and do so automatically.
7884
if /usr/bin/certbot --authenticator webroot --installer apache \

0 commit comments

Comments
 (0)