mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Cleaning snapctl usage
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
parent
62fca18fea
commit
07fc296762
2 changed files with 4 additions and 8 deletions
|
|
@ -1,11 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# store here all configuration options for wekan snap
|
# All supported keys are defined here together with descriptions and default values
|
||||||
SNAP_NAME="wekan"
|
|
||||||
|
|
||||||
# read configured settings first
|
|
||||||
SETTINGS_FILE="$SNAP_COMMON/wekan_settings.sh"
|
|
||||||
[ -f $SETTINGS_FILE ] && . $SETTINGS_FILE
|
|
||||||
|
|
||||||
# list of supported keys
|
# list of supported keys
|
||||||
keys="MONGODB_BIND_UNIX_SOCKET MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT"
|
keys="MONGODB_BIND_UNIX_SOCKET MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source $SNAP/bin/config &>/dev/null
|
# first read settings
|
||||||
|
source $SNAP/bin/wekan-read-settings &>/dev/null
|
||||||
|
|
||||||
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue