mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-02 17:08:38 +08:00
install path
This commit is contained in:
parent
9e8d3fad7d
commit
857651451f
@ -153,6 +153,12 @@ else
|
|||||||
fi
|
fi
|
||||||
echo Install from url: $artifact_url
|
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
|
# Define common functions
|
||||||
|
|
||||||
Wait_apt() {
|
Wait_apt() {
|
||||||
@ -243,11 +249,6 @@ download_source() {
|
|||||||
echo "$echo_prefix_source Download Websoft9 source code from $artifact_url/$source_zip"
|
echo "$echo_prefix_source Download Websoft9 source code from $artifact_url/$source_zip"
|
||||||
|
|
||||||
find . -type f -name "websoft9*.zip*" -exec rm -f {} \;
|
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"
|
wget "$artifact_url/$source_zip"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -460,7 +461,7 @@ install_systemd() {
|
|||||||
|
|
||||||
|
|
||||||
#--------------- main-----------------------------------------
|
#--------------- main-----------------------------------------
|
||||||
log_path="$path/install.log"
|
log_path="$install_path/install.log"
|
||||||
check_ports $http_port $https_port $port | tee -a $log_path
|
check_ports $http_port $https_port $port | tee -a $log_path
|
||||||
install_tools | tee -a $log_path
|
install_tools | tee -a $log_path
|
||||||
download_source | tee -a $log_path
|
download_source | tee -a $log_path
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.8.40",
|
"version": "0.8.41",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"portainer": "0.0.8",
|
"portainer": "0.0.8",
|
||||||
"nginx": "0.0.6",
|
"nginx": "0.0.6",
|
||||||
|
Loading…
Reference in New Issue
Block a user