install path

This commit is contained in:
qiaofeng1227 2024-02-01 11:11:41 +08:00
parent 9e8d3fad7d
commit 857651451f
2 changed files with 8 additions and 7 deletions

View File

@ -153,6 +153,12 @@ else
fi
echo Install from url: $artifact_url
if [ -d "$install_path" ]; then
echo "Directory $install_path already exists and installation will cover it."
else
sudo mkdir -p "$install_path"
fi
# Define common functions
Wait_apt() {
@ -243,11 +249,6 @@ download_source() {
echo "$echo_prefix_source Download Websoft9 source code from $artifact_url/$source_zip"
find . -type f -name "websoft9*.zip*" -exec rm -f {} \;
if [ -d "$install_path" ]; then
echo "Directory $install_path already exists and installation will cover it."
else
sudo mkdir -p "$install_path"
fi
wget "$artifact_url/$source_zip"
if [ $? -ne 0 ]; then
@ -460,7 +461,7 @@ install_systemd() {
#--------------- main-----------------------------------------
log_path="$path/install.log"
log_path="$install_path/install.log"
check_ports $http_port $https_port $port | tee -a $log_path
install_tools | tee -a $log_path
download_source | tee -a $log_path

View File

@ -1,5 +1,5 @@
{
"version": "0.8.40",
"version": "0.8.41",
"plugins": {
"portainer": "0.0.8",
"nginx": "0.0.6",