reinstall process improved
Now we save a copy of config-file in home folder in case Webinoly is reinstalled.
This commit is contained in:
parent
a54d357a20
commit
9d97bf93cc
|
@ -204,6 +204,7 @@ elif [ "$opt" == "-uninstall" ]; then
|
||||||
sudo apt-get -y -qq autoremove > /dev/null
|
sudo apt-get -y -qq autoremove > /dev/null
|
||||||
conf_write pre-packs purged
|
conf_write pre-packs purged
|
||||||
fi
|
fi
|
||||||
|
sudo mv /opt/webinoly/webinoly.conf $HOME/.webinoly-conf-restore_dont-remove
|
||||||
sudo rm -rf /opt/webinoly
|
sudo rm -rf /opt/webinoly
|
||||||
sudo rm /usr/bin/webinoly
|
sudo rm /usr/bin/webinoly
|
||||||
sudo rm /usr/bin/stack
|
sudo rm /usr/bin/stack
|
||||||
|
|
18
weby
18
weby
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Webinoly script.
|
# Webinoly script.
|
||||||
# This script is designed to install latest Webinoly.
|
# This script is designed to install latest Webinoly.
|
||||||
webyversion="1.2.2-beta"
|
webyversion="1.2.2"
|
||||||
|
|
||||||
|
|
||||||
# Check OS support
|
# Check OS support
|
||||||
|
@ -64,15 +64,19 @@ sudo mv /opt/webinoly/plugins/* /usr/bin/
|
||||||
|
|
||||||
source /opt/webinoly/lib/install
|
source /opt/webinoly/lib/install
|
||||||
|
|
||||||
# Save Tools Port after library is available.
|
# Check for uninstalled Webinoly conf file
|
||||||
if [[ -z "$2" ]]; then
|
if [[ -a $HOME/.webinoly-conf-restore_dont-remove ]]; then
|
||||||
portools="22222"
|
sudo mv $HOME/.webinoly-conf-restore_dont-remove /opt/webinoly/webinoly.conf
|
||||||
else
|
|
||||||
portools="$2"
|
|
||||||
fi
|
fi
|
||||||
if [[ -a /opt/webinoly/webinoly.conf ]]; then
|
|
||||||
|
# Save Tools Port after library is available.
|
||||||
|
if [[ -a /opt/webinoly/webinoly.conf && -n $(conf_read tools-port) ]]; then
|
||||||
echo "${gre}Webinoly Configuration file was found, so we will use it!${end}"
|
echo "${gre}Webinoly Configuration file was found, so we will use it!${end}"
|
||||||
else
|
else
|
||||||
|
portools="22222"
|
||||||
|
if [[ -n "$2" ]]; then
|
||||||
|
portools="$2"
|
||||||
|
fi
|
||||||
tools_port $portools
|
tools_port $portools
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue