Darren 1 tahun lalu
induk
melakukan
61a3de3856
4 mengubah file dengan 8 tambahan dan 8 penghapusan
  1. 2 2
      changelog_latest.md
  2. 2 2
      install/install.sh
  3. 3 3
      install/install_cockpit.sh
  4. 1 1
      version.json

+ 2 - 2
changelog_latest.md

@@ -1,2 +1,2 @@
-1. Fix install error: apt locked
-2. Install: add Docker daemon.json
+1. Fix install error: print version at Ubuntu
+2. Fix install error: cockpit can not start at Ubuntu

+ 2 - 2
install/install.sh

@@ -120,7 +120,7 @@ install_tools(){
 
 
 
 
 download_source() {
 download_source() {
-    echo_prefix_source=$'\n[Dowload Source] - '
+    echo_prefix_source=$'\n[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 {} \;
@@ -290,7 +290,7 @@ install_systemd() {
     sudo mkdir -p "$systemd_path"
     sudo mkdir -p "$systemd_path"
     fi
     fi
 
 
-    sudo cp -r $install_path/systemd/* "$systemd_path"
+    sudo cp -r $install_path/systemd/script/* "$systemd_path"
     sudo cp -f "$systemd_path/websoft9.service" /lib/systemd/system/
     sudo cp -f "$systemd_path/websoft9.service" /lib/systemd/system/
     if [ $? -ne 0 ]; then
     if [ $? -ne 0 ]; then
         echo "Failed to copy Systemd service file."
         echo "Failed to copy Systemd service file."

+ 3 - 3
install/install_cockpit.sh

@@ -102,7 +102,7 @@ check_ports() {
 }
 }
 
 
 Print_Version(){
 Print_Version(){
-    sudo /usr/libexec/cockpit-ws --version 2>/dev/null || sudo /usr/lib/cockpit-ws --version 2>/dev/null
+    sudo /usr/libexec/cockpit-ws --version 2>/dev/null || sudo /usr/lib/cockpit-ws --version 2>/dev/null || /usr/lib/cockpit/cockpit-ws --version 2>/dev/null
 }
 }
 
 
 Install_PackageKit(){
 Install_PackageKit(){
@@ -132,7 +132,7 @@ Install_PackageKit(){
 
 
 
 
 Set_Repository() {
 Set_Repository() {
-    echo "$echo_prefix_cockpit Set Cockpit repository"
+    echo "$echo_prefix_cockpit Set Cockpit deb repository"
     if command -v apt &> /dev/null; then
     if command -v apt &> /dev/null; then
         if [ "$NAME" = "Debian" ]; then
         if [ "$NAME" = "Debian" ]; then
             echo "deb http://deb.debian.org/debian $VERSION_CODENAME-backports main" > /etc/apt/sources.list.d/backports.list
             echo "deb http://deb.debian.org/debian $VERSION_CODENAME-backports main" > /etc/apt/sources.list.d/backports.list
@@ -147,8 +147,8 @@ Set_Repository() {
 Restart_Cockpit(){
 Restart_Cockpit(){
     echo "$echo_prefix_cockpit Restart Cockpit"
     echo "$echo_prefix_cockpit Restart Cockpit"
     sudo systemctl daemon-reload
     sudo systemctl daemon-reload
-    sudo systemctl restart cockpit
     sudo systemctl restart cockpit.socket 2> /dev/null
     sudo systemctl restart cockpit.socket 2> /dev/null
+    sudo systemctl restart cockpit
 }
 }
 
 
 Set_Firewall(){
 Set_Firewall(){

+ 1 - 1
version.json

@@ -1,5 +1,5 @@
 {
 {
-  "version": "0.8.26-rc4",
+  "version": "0.8.26-rc5",
   "plugins": {
   "plugins": {
     "portainer": "0.0.6",
     "portainer": "0.0.6",
     "nginx": "0.0.5",
     "nginx": "0.0.5",