Verified Commit 24a25309 authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Add upload certs to gitlab script.

parent b6155093
#!/usr/bin/env bash
set -e
shopt -s globstar
usage () {
printf "usage: ./$0 <certDirPath>\n"
printf "where\n"
printf "\t certDirPath - absolute path to directory with SSL cert (certificate.crt) and key (certificate.key) file\n"
exit 1;
}
if ! [ $# -eq 1 ]
then
usage
fi
CERTDIRPATH=$1
FILES=("certificate.key" "certificate.crt")
for file in ${FILES[@]}
do
scp $CERTDIRPATH/$file git.dbogatov.org:/home/dbogatov/certs/
done
echo "Done."
......@@ -4,6 +4,7 @@ declare -A DOMAINS
DOMAINS["dbogatov.org"]=true
DOMAINS["cluster.dbogatov.org"]=true
DOMAINS["pages.dbogatov.org"]=true
DOMAINS["bogatov.kiev.ua"]=true
DOMAINS["visasupport.com.ua"]=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment