2 Commits
0.3.3 ... 0.3.5

Author SHA1 Message Date
fbt
32b26b5783 cfg_path bugfix
Signed-off-by: fbt <fbt@fleshless.org>
2017-12-10 20:13:51 +03:00
fbt
6f2db37dff Show the config path in the info
Signed-off-by: fbt <fbt@fleshless.org>
2017-12-10 19:48:22 +03:00

3
ssm
View File

@@ -280,6 +280,7 @@ info() {
"$_status_label" "$_status" "$_status_label" "$_status"
"Exec" "${service_command[*]} ${service_args[*]}" "Exec" "${service_command[*]} ${service_args[*]}"
"Respawn" "${service_respawn:-false}" "Respawn" "${service_respawn:-false}"
"Config path" "${service_config}"
) )
[[ "$_status" == 'yes' ]] && { [[ "$_status" == 'yes' ]] && {
@@ -378,7 +379,7 @@ main() {
service_path+=( '/etc/ssm/services' "$rundir/services" "$usrdir/services" ) service_path+=( '/etc/ssm/services' "$rundir/services" "$usrdir/services" )
# Common config path # Common config path
cfg_path+=( '/etc/ssm/conf.d' ) cfg_path+=( '/etc/ssm' )
# Load custom functions # Load custom functions
for (( idx=${#cfg_path[@]}-1; idx>=0; idx-- )); do for (( idx=${#cfg_path[@]}-1; idx>=0; idx-- )); do