Replace old scripts with JShell.
[lgpl/argeo-commons.git] / dist / argeo-node / base / bin / argeo-cms
index 9819b7e772950d17c8671bcf8f909800dc1ede1f..d93d89984bb9c84b8073e2be4b8e4ad8092d9156 100755 (executable)
@@ -9,10 +9,8 @@ BASE_DIR=$BIN_DIR/..
 # Directories and files
 CONF_DIR=$BASE_DIR/etc/$APP
 CONF_DIRS=$CONF_DIR/conf.d
-#BASE_POLICY_ALL=/usr/share/$APP/all.policy
 BASE_CONFIG_INI=$BASE_DIR/share/$APP/config.ini
 
-#EXEC_DIR=$BASE_DIR/var/lib/$APP
 EXEC_DIR=.
 DATA_DIR=$EXEC_DIR/data
 CONF_RW=$EXEC_DIR/state
@@ -33,7 +31,7 @@ start() {
        mkdir -p $DATA_DIR
 
     # Merge config files
-    printf "## Equinox configuration - Generated by /usr/sbin/nodectl ##\n\n" > $CONFIG_INI
+    printf "## Equinox configuration - Generated by argeo-cms ##\n\n" > $CONFIG_INI
     cat $BASE_CONFIG_INI >> $CONFIG_INI
     printf "\n##\n## $CONF_DIR/$APP.ini\n##\n\n" >> $CONFIG_INI
     cat $CONF_DIR/$APP.ini >> $CONFIG_INI
@@ -128,6 +126,6 @@ case "$1" in
        status
         ;;
   *)
-        echo $"Usage: $0 {start|stop|status}"
-        exit 1
+        start
+        ;;
 esac
\ No newline at end of file