mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 13:32:58 +03:00
install_easy : keep=N if we didnt remove /opt/zapret
This commit is contained in:
parent
e83ba82bc1
commit
0c3a5aac87
@ -347,12 +347,12 @@ check_location()
|
|||||||
echo easy install is supported only from default location : $ZAPRET_BASE
|
echo easy install is supported only from default location : $ZAPRET_BASE
|
||||||
echo currently its run from $EXEDIR
|
echo currently its run from $EXEDIR
|
||||||
if ask_yes_no N "do you want the installer to copy it for you"; then
|
if ask_yes_no N "do you want the installer to copy it for you"; then
|
||||||
local keep=Y
|
local keep=N
|
||||||
if [ -d "$ZAPRET_BASE" ]; then
|
if [ -d "$ZAPRET_BASE" ]; then
|
||||||
echo installer found existing $ZAPRET_BASE
|
echo installer found existing $ZAPRET_BASE
|
||||||
echo directory needs to be replaced. config and custom scripts can be kept or replaced with clean version
|
echo directory needs to be replaced. config and custom scripts can be kept or replaced with clean version
|
||||||
if ask_yes_no N "do you want to delete all files there and copy this version"; then
|
if ask_yes_no N "do you want to delete all files there and copy this version"; then
|
||||||
ask_yes_no Y "keep config and custom scripts" || keep=N
|
ask_yes_no Y "keep config and custom scripts" && keep=Y
|
||||||
[ "$keep" = "Y" ] && backup_restore_settings 1
|
[ "$keep" = "Y" ] && backup_restore_settings 1
|
||||||
rm -r "$ZAPRET_BASE"
|
rm -r "$ZAPRET_BASE"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user