Skip to content

Commit f86165c

Browse files
committed
Add "proceed migration"-question.
1 parent d1732f8 commit f86165c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install/hst-migration.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ if [ ! "$VERSION" = "0.9.8" ]; then
5656
exit 1
5757
fi
5858

59+
# Inform abouot and ask to proceed migration.
60+
loop=1
61+
while [ "$loop" -eq 1 ]; do
62+
read -p "Would you like to migrate to HestiaCP? Please be warned, that we remvoe and do not support softaculous and payed VestaCP extensions! [yes/no]: " api
63+
if [ $api == 'yes' ] || [ $api == 'no' ]; then
64+
loop=0
65+
if [ $api == 'no' ]; then
66+
echo "Canceling migration..."
67+
exit 1
68+
else
69+
echo "Please enter yes or no!"
70+
fi
71+
done
72+
5973
# Update apt repository
6074
echo "Updating system repository..."
6175
apt-get -qq update

0 commit comments

Comments
 (0)