Skip to content

Commit 02da1c6

Browse files
committed
Fixing install script
1 parent ee47d2b commit 02da1c6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

get/install.bash

+4-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ do_install() {
128128
cd $tmp
129129
fi
130130
get_n_extract $tmp
131-
./webexec start
132131
if [ -z $SSH_TTY ]
133132
then
133+
if [ ! -d $HOME/.config/webexec ]
134+
then
135+
./webexec init
136+
fi
134137
echo "Moving to another shell to survive this connection ending"
135138
$sh_c "nohup bash ./replace_n_launch.sh $user ${HOME:-/root}"
136139
else
@@ -150,7 +153,5 @@ do_install() {
150153
webexec start
151154
echo "Install finished, please exit and reconnect to enjoy version $LATEST_VERSION."
152155
fi
153-
154-
155156
}
156157
do_install "$@"

get/src_install.bash

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ do_install() {
115115
get_n_extract $tmp
116116
if [ -z $SSH_TTY ]
117117
then
118+
if [ ! -d $HOME/.config/webexec ]
119+
then
120+
./webexec init
121+
fi
118122
echo "Moving to another shell to survive this connection ending"
119123
$sh_c "nohup bash ./replace_n_launch.sh $user ${HOME:-/root}"
120124
else

0 commit comments

Comments
 (0)