Skip to content

Commit 1cddf84

Browse files
committed
Remove check if force ssl is already enabled.
1 parent 11621df commit 1cddf84

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bin/v-add-web-domain-ssl-force

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,7 @@ else
5555
forcessl="/home/$user/conf/web/forcessl.apache2.$domain.conf"
5656
fi
5757

58-
# Check if force SSL already exists
59-
if [ -f "$forcessl" ]; then
60-
echo "Error: Rewrite is already enabled"
61-
exit $E_EXIST
62-
fi
63-
64-
# Insert rewrite commands
58+
# Insert redirect commands
6559
if [ ! -z $PROXY ]; then
6660
echo 'return 301 https://$server_name$request_uri;' > $forcessl
6761
else

0 commit comments

Comments
 (0)