Skip to content

Commit

Permalink
Fixing the installer's upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Aug 16, 2023
1 parent b215375 commit 808d701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions replace_n_launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ if command_exists webexec; then
webexec stop
fi
cp webexec /usr/local/bin
/usr/local/bin/webexec start
7 changes: 4 additions & 3 deletions sites/get/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ do_install() {
cd $tmp
fi
get_n_extract $tmp
if [ -z $SSH_TTY ]
if [[ $(ps -o comm= -p $PPID) == *webexec ]]
then
if [ ! -d $HOME/.config/webexec ]
then
Expand All @@ -137,10 +137,11 @@ do_install() {
echo "Moving to another shell to survive this connection ending"
$sh_c "nohup bash ./replace_n_launch.sh $user ${HOME:-/root}"
else
if command_exists webexec; then
if command_exists webexec
then
webexec stop > /dev/null
fi
cp webexec /usr/local/bin 2> /dev/null
mv webexec /usr/local/bin
if [ $? -ne 0 ]
then
echo "Failed copying webexec to /usr/local/bin. Retrying as root"
Expand Down

0 comments on commit 808d701

Please sign in to comment.