Skip to content

Commit 4681c52

Browse files
committed
Add additional confirmation request to package build.
1 parent cb33c82 commit 4681c52

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

bin/v-update-sys-hestia-git

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,18 @@ fi
374374
#################################################################################
375375

376376
if [ "$install" = 'yes' ] || [ "$install" = 'y' ]; then
377-
echo "Installing packages..."
378-
for i in $DEB_DIR/*.deb; do
379-
# Install all available packages
380-
dpkg -i $i
381-
done
382-
unset $answer
383-
# Remove temporary files
384-
rm -rf $BUILD_DIR
377+
echo "!!! Development builds should not be installed on systems with live production data without understanding the potential risks involved. !!!"
378+
read -p 'Do you want to proceed the package installation? [y/n] ' answer
379+
if [ "$answer" = 'y' ] || [ "$answer" = 'Y' ]; then
380+
echo "Installing packages..."
381+
for i in $DEB_DIR/*.deb; do
382+
# Install all available packages
383+
dpkg -i $i
384+
done
385+
unset $answer
386+
# Remove temporary files
387+
rm -rf $BUILD_DIR
388+
else
389+
check_result 1 "Package installation cancelled..."
390+
fi
385391
fi

0 commit comments

Comments
 (0)