diff --git a/ssm b/ssm index 2640f36..343faa9 100755 --- a/ssm +++ b/ssm @@ -342,6 +342,8 @@ main() { # Let's set some defaults service_managed=1 + usrdir='/usr/share/ssm' + if (( $UID )); then # XDG stuff default XDG_CONFIG_HOME "$HOME/.config" @@ -356,7 +358,7 @@ main() { logdir='/var/log/ssm' fi - service_path+=( "$cfgdir/init.d" "$rundir/services" ) + service_path+=( "$cfgdir/init.d" "$rundir/services" "$usrdir/services" ) # Load custom functions for f in "$cfgdir/functions"/*; do