mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Closes #17
Cause people cared more than I thought they would. (and that's a good thing)
This commit is contained in:
parent
03190d336f
commit
0649c5da66
3 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ Installation
|
||||||
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -L http://install.pivpn.io | bash
|
curl -L https://install.pivpn.io | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
The script will first update your APT repositories, upgrade packages, and install OpenVPN,
|
The script will first update your APT repositories, upgrade packages, and install OpenVPN,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
# Install with this command (from your Pi):
|
# Install with this command (from your Pi):
|
||||||
#
|
#
|
||||||
# curl -L http://install.pivpn.io | bash
|
# curl -L https://install.pivpn.io | bash
|
||||||
|
|
||||||
|
|
||||||
######## VARIABLES #########
|
######## VARIABLES #########
|
||||||
|
@ -134,7 +134,7 @@ verifyFreeDiskSpace() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $existingFreeBytes -lt $requiredFreeBytes ]]; then
|
if [[ $existingFreeBytes -lt $requiredFreeBytes ]]; then
|
||||||
whiptail --msgbox --backtitle "Insufficient Disk Space" --title "Insufficient Disk Space" "\nYour system appears to be low on disk space. PiVPN recomends a minimum of $requiredFreeBytes Bytes.\nYou only have $existingFreeBytes Free.\n\nIf this is a new install you may need to expand your disk.\n\nTry running:\n 'sudo raspi-config'\nChoose the 'expand file system option'\n\nAfter rebooting, run this installation again.\n\ncurl -L http://install.pivpn.io | bash\n" $r $c
|
whiptail --msgbox --backtitle "Insufficient Disk Space" --title "Insufficient Disk Space" "\nYour system appears to be low on disk space. PiVPN recomends a minimum of $requiredFreeBytes Bytes.\nYou only have $existingFreeBytes Free.\n\nIf this is a new install you may need to expand your disk.\n\nTry running:\n 'sudo raspi-config'\nChoose the 'expand file system option'\n\nAfter rebooting, run this installation again.\n\ncurl -L https://install.pivpn.io | bash\n" $r $c
|
||||||
echo "$existingFreeBytes is less than $requiredFreeBytes"
|
echo "$existingFreeBytes is less than $requiredFreeBytes"
|
||||||
echo "Insufficient free space, exiting..."
|
echo "Insufficient free space, exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -90,7 +90,7 @@ echo ":::"
|
||||||
|
|
||||||
echo ":::"
|
echo ":::"
|
||||||
printf "::: Finished removing PiVPN from your system.\n"
|
printf "::: Finished removing PiVPN from your system.\n"
|
||||||
printf "::: Reinstall by simpling running\n:::\n:::\tcurl -L http://install.pivpn.io | bash\n:::\n::: at any time!\n:::\n"
|
printf "::: Reinstall by simpling running\n:::\n:::\tcurl -L https://install.pivpn.io | bash\n:::\n::: at any time!\n:::\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
function askreboot() {
|
function askreboot() {
|
||||||
|
|
Loading…
Reference in a new issue