|
@@ -1,15 +1,22 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
-source $SNAP/bin/config &>/dev/null
|
|
|
|
|
|
+# first read settings
|
|
|
|
+source $SNAP/bin/wekan-read-settings &>/dev/null
|
|
|
|
+if [ "$CADDY_ENABLED" = "true" ]; then
|
|
|
|
+ # tweak port nunmber as it has been remapped
|
|
|
|
+ export PORT=${CADDY_PORT} &>/dev/null
|
|
|
|
+fi
|
|
|
|
|
|
echo -e "Wekan: The open-source Trello-like kanban.\n"
|
|
echo -e "Wekan: The open-source Trello-like kanban.\n"
|
|
echo -e "Make sure you have connected all interfaces, check more by calling $ snap interfaces"
|
|
echo -e "Make sure you have connected all interfaces, check more by calling $ snap interfaces"
|
|
echo -e "\n"
|
|
echo -e "\n"
|
|
-echo -e "${SNAP_NAME} has two services, to check status/restart/stop use systemd commands"
|
|
|
|
|
|
+echo -e "${SNAP_NAME} has multiple services, to check status/restart/stop use systemctl"
|
|
echo -e "mongodb service:"
|
|
echo -e "mongodb service:"
|
|
echo -e "\t$ sudo systemctl status/start/stop/restart snap.$SNAP_NAME.mongodb"
|
|
echo -e "\t$ sudo systemctl status/start/stop/restart snap.$SNAP_NAME.mongodb"
|
|
echo -e "wekan service"
|
|
echo -e "wekan service"
|
|
echo -e "\t$ sudo systemctl status/start/stop/restart snap.$SNAP_NAME.wekan"
|
|
echo -e "\t$ sudo systemctl status/start/stop/restart snap.$SNAP_NAME.wekan"
|
|
|
|
+echo -e "Optional caddy service"
|
|
|
|
+echo -e "\t$ sudo systemctl status/start/stop/restart snap.$SNAP_NAME.caddy"
|
|
echo -e "\n"
|
|
echo -e "\n"
|
|
echo -e "To make backup of wekan's database use: $ ${SNAP_NAME}.database-backup [backup file]"
|
|
echo -e "To make backup of wekan's database use: $ ${SNAP_NAME}.database-backup [backup file]"
|
|
echo -e "\t backup file is optional parameter, if not passed backup is created in directory:"
|
|
echo -e "\t backup file is optional parameter, if not passed backup is created in directory:"
|
|
@@ -42,7 +49,5 @@ do
|
|
echo -e "\t\tCurrent value set to: '${!key}', (default value: '${!default_value}')"
|
|
echo -e "\t\tCurrent value set to: '${!key}', (default value: '${!default_value}')"
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
-echo -e "\nFor changes to take effect restart wekan service,"
|
|
|
|
-echo -e "if mongodb key was change also restart mongodb service, before restarting wekan"
|
|
|
|
-echo -e "to restart mongodb: $ sudo systemctl restart snap.$SNAP_NAME.mongodb"
|
|
|
|
-echo -e "to restart wekan: $ sudo systemctl restart snap.$SNAP_NAME.wekan"
|
|
|
|
|
|
+
|
|
|
|
+echo -e "\n!!!! Some changes result in restart of some or all services, use with caution !!!!!"
|