jobs - fix jobs when MULTISITE=yes
This commit is contained in:
parent
29dc64ca30
commit
ab9f9e0a4c
@ -60,7 +60,7 @@ if [ "$files" != " " ] ; then
|
|||||||
fi
|
fi
|
||||||
certbot_outpout=$(/opt/scripts/certbot-new.sh "$(echo -n $SERVER_NAME | sed 's/ /,/g')" "$EMAIL_LETS_ENCRYPT" 2>&1)
|
certbot_outpout=$(/opt/scripts/certbot-new.sh "$(echo -n $SERVER_NAME | sed 's/ /,/g')" "$EMAIL_LETS_ENCRYPT" 2>&1)
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "[*] Certbot new successfully executed"
|
echo "[*] Certbot new successfully executed for domain(s) $(echo -n $SERVER_NAME | sed 's/ /,/g')"
|
||||||
else
|
else
|
||||||
echo "[*] Error while executing certbot new : $certbot_output"
|
echo "[*] Error while executing certbot new : $certbot_output"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -28,7 +28,6 @@ function has_value() {
|
|||||||
for file in $envs ; do
|
for file in $envs ; do
|
||||||
if [ "$(grep "^${1}=${2}$" $file)" != "" ] ; then
|
if [ "$(grep "^${1}=${2}$" $file)" != "" ] ; then
|
||||||
echo "$file"
|
echo "$file"
|
||||||
return 0
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user