Skip to content

Commit cd61ed5

Browse files
author
Yaroslav
committed
Root privileges are now optional
1 parent d5dd116 commit cd61ed5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

init-letsencrypt.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ email="" # Adding a valid address is strongly recommended
77
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits
88

99
if [ "$EUID" -ne 0 ]; then
10-
echo "Please run init-letsencrypt.sh as root." && exit
10+
read -p "You executed this script without root privileges, do you want to continue? (WARNING: script won't be able to delete generated Let's Encrypt TLS certificates) (Y/n) " decision
11+
case $decision in
12+
[Y]* ) ;;
13+
[n]* ) exit;;
14+
* ) echo "Please choose the right variant (Y/n).";;
15+
esac
1116
fi
1217

1318

0 commit comments

Comments
 (0)