Improve upgrade scripts
- Cleanup
This commit is contained in:
parent
c2d7eef27c
commit
e16151f183
@ -78,25 +78,6 @@ Error: This script requires Libreswan already installed.
|
|||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
|
||||||
cat <<EOF
|
|
||||||
You already have Libreswan version $SWAN_VER installed!
|
|
||||||
If you continue, the same version will be re-installed.
|
|
||||||
|
|
||||||
EOF
|
|
||||||
printf "Do you want to continue anyway? [y/N] "
|
|
||||||
read -r response
|
|
||||||
case $response in
|
|
||||||
[yY][eE][sS]|[yY])
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Abort. No changes were made."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_setup_info() {
|
show_setup_info() {
|
||||||
@ -121,6 +102,14 @@ WARNING: Older versions of Libreswan could contain known security vulnerabilitie
|
|||||||
See https://libreswan.org/security/ for more information.
|
See https://libreswan.org/security/ for more information.
|
||||||
Are you sure you want to install an older version?
|
Are you sure you want to install an older version?
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
Note: You already have Libreswan version $SWAN_VER installed!
|
||||||
|
If you continue, the same version will be re-installed.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ check_libreswan() {
|
|||||||
cat 1>&2 <<EOF
|
cat 1>&2 <<EOF
|
||||||
Error: Libreswan version '$SWAN_VER' is not supported.
|
Error: Libreswan version '$SWAN_VER' is not supported.
|
||||||
This script can install one of these versions:
|
This script can install one of these versions:
|
||||||
3.32, 4.1-4.5 or 4.6
|
3.32, 4.1-4.6
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@ -61,25 +61,6 @@ Error: This script requires Libreswan already installed.
|
|||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
|
||||||
cat <<EOF
|
|
||||||
You already have Libreswan version $SWAN_VER installed!
|
|
||||||
If you continue, the same version will be re-installed.
|
|
||||||
|
|
||||||
EOF
|
|
||||||
printf "Do you want to continue anyway? [y/N] "
|
|
||||||
read -r response
|
|
||||||
case $response in
|
|
||||||
[yY][eE][sS]|[yY])
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Abort. No changes were made."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_setup_info() {
|
show_setup_info() {
|
||||||
@ -104,6 +85,14 @@ WARNING: Older versions of Libreswan could contain known security vulnerabilitie
|
|||||||
See https://libreswan.org/security/ for more information.
|
See https://libreswan.org/security/ for more information.
|
||||||
Are you sure you want to install an older version?
|
Are you sure you want to install an older version?
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
Note: You already have Libreswan version $SWAN_VER installed!
|
||||||
|
If you continue, the same version will be re-installed.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ check_libreswan() {
|
|||||||
cat 1>&2 <<EOF
|
cat 1>&2 <<EOF
|
||||||
Error: Libreswan version '$SWAN_VER' is not supported.
|
Error: Libreswan version '$SWAN_VER' is not supported.
|
||||||
This script can install one of these versions:
|
This script can install one of these versions:
|
||||||
3.32, 4.1-4.5 or 4.6
|
3.32, 4.1-4.6
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@ -79,25 +79,6 @@ Error: This script requires Libreswan already installed.
|
|||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
|
||||||
cat <<EOF
|
|
||||||
You already have Libreswan version $SWAN_VER installed!
|
|
||||||
If you continue, the same version will be re-installed.
|
|
||||||
|
|
||||||
EOF
|
|
||||||
printf "Do you want to continue anyway? [y/N] "
|
|
||||||
read -r response
|
|
||||||
case $response in
|
|
||||||
[yY][eE][sS]|[yY])
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Abort. No changes were made."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_setup_info() {
|
show_setup_info() {
|
||||||
@ -122,6 +103,14 @@ WARNING: Older versions of Libreswan could contain known security vulnerabilitie
|
|||||||
See https://libreswan.org/security/ for more information.
|
See https://libreswan.org/security/ for more information.
|
||||||
Are you sure you want to install an older version?
|
Are you sure you want to install an older version?
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
Note: You already have Libreswan version $SWAN_VER installed!
|
||||||
|
If you continue, the same version will be re-installed.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ check_libreswan() {
|
|||||||
cat 1>&2 <<EOF
|
cat 1>&2 <<EOF
|
||||||
Error: Libreswan version '$SWAN_VER' is not supported.
|
Error: Libreswan version '$SWAN_VER' is not supported.
|
||||||
This script can install one of these versions:
|
This script can install one of these versions:
|
||||||
3.32, 4.1-4.5 or 4.6
|
3.32, 4.1-4.6
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@ -88,25 +88,6 @@ Error: This script requires Libreswan already installed.
|
|||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
|
||||||
cat <<EOF
|
|
||||||
You already have Libreswan version $SWAN_VER installed!
|
|
||||||
If you continue, the same version will be re-installed.
|
|
||||||
|
|
||||||
EOF
|
|
||||||
printf "Do you want to continue anyway? [y/N] "
|
|
||||||
read -r response
|
|
||||||
case $response in
|
|
||||||
[yY][eE][sS]|[yY])
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Abort. No changes were made."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
show_setup_info() {
|
show_setup_info() {
|
||||||
@ -131,6 +112,14 @@ WARNING: Older versions of Libreswan could contain known security vulnerabilitie
|
|||||||
See https://libreswan.org/security/ for more information.
|
See https://libreswan.org/security/ for more information.
|
||||||
Are you sure you want to install an older version?
|
Are you sure you want to install an older version?
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$swan_ver_old" = "$SWAN_VER" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
Note: You already have Libreswan version $SWAN_VER installed!
|
||||||
|
If you continue, the same version will be re-installed.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user