|
61 | 61 | _LOGGER_VERBOSE=true |
62 | 62 | fi |
63 | 63 |
|
64 | | -if [ "$SLEEP_TIME" == "" ]; then # Leave the possibity to set SLEEP_TIME as environment variable when runinng with bash -x in order to avoid spamming console |
| 64 | +if [ "$SLEEP_TIME" == "" ]; then # Leave the possibility to set SLEEP_TIME as environment variable when running with bash -x in order to avoid spamming console |
65 | 65 | SLEEP_TIME=.05 |
66 | 66 | fi |
67 | 67 |
|
@@ -834,7 +834,7 @@ function CopyServiceFiles { |
834 | 834 |
|
835 | 835 |
|
836 | 836 | Logger "Created [$SERVICE_NAME] service in [$SERVICE_DIR_SYSTEMD_SYSTEM] and [$SERVICE_DIR_SYSTEMD_USER]." "NOTICE" |
837 | | - Logger "Can be activated with [systemctl start $SERVICE_NAME@instance.conf] where instance.conf is the name of the config file in $CONF_DIR." "NOTICE" |
| 837 | + Logger "Can be activated with [systemctl start [email protected]] where instance.conf is the name of the config file in $CONF_DIR." "NOTICE" |
838 | 838 | Logger "Can be enabled on boot with [systemctl enable $SERVICE_NAME@instance.conf]." "NOTICE" |
839 | 839 | Logger "In userland, active with [systemctl --user start $SERVICE_NAME@instance.conf]." "NOTICE" |
840 | 840 | elif ([ "$init" == "initV" ] && [ -f "$SCRIPT_PATH/$SERVICE_FILE_INIT" ] && [ -d "$SERVICE_DIR_INIT" ]); then |
@@ -907,31 +907,22 @@ function RemoveAll { |
907 | 907 | else |
908 | 908 | Logger "Skipping removal of [$BIN_DIR/$SSH_FILTER] because other programs present that need it." "NOTICE" |
909 | 909 | fi |
| 910 | + RemoveFile "$SERVICE_DIR_SYSTEMD_SYSTEM/$SERVICE_FILE_SYSTEMD_SYSTEM" |
| 911 | + RemoveFile "$SERVICE_DIR_SYSTEMD_USER/$SERVICE_FILE_SYSTEMD_USER" |
| 912 | + RemoveFile "$SERVICE_DIR_INIT/$SERVICE_FILE_INIT" |
910 | 913 |
|
911 | | - # Try to uninstall every possible service file |
912 | | - #if [ $init == "systemd" ]; then |
913 | | - RemoveFile "$SERVICE_DIR_SYSTEMD_SYSTEM/$SERVICE_FILE_SYSTEMD_SYSTEM" |
914 | | - RemoveFile "$SERVICE_DIR_SYSTEMD_USER/$SERVICE_FILE_SYSTEMD_USER" |
915 | | - RemoveFile "$SERVICE_DIR_SYSTEMD_SYSTEM/$TARGET_HELPER_SERVICE_FILE_SYSTEMD_SYSTEM" |
916 | | - RemoveFile "$SERVICE_DIR_SYSTEMD_USER/$TARGET_HELPER_SERVICE_FILE_SYSTEMD_USER" |
917 | | - #elif [ $init == "initV" ]; then |
918 | | - RemoveFile "$SERVICE_DIR_INIT/$SERVICE_FILE_INIT" |
919 | | - RemoveFile "$SERVICE_DIR_INIT/$TARGET_HELPER_SERVICE_FILE_INIT" |
920 | | - #elif [ $init == "openrc" ]; then |
921 | | - RemoveFile "$SERVICE_DIR_OPENRC/$SERVICE_FILE_OPENRC" |
922 | | - RemoveFile "$SERVICE_DIR_OPENRC/$TARGET_HELPER_SERVICE_FILE_OPENRC" |
923 | | - #else |
924 | | - #Logger "Can't uninstall from initV, systemd or openRC." "WARN" |
925 | | - #fi |
| 914 | + RemoveFile "$TARGET_HELPER_SERVICE_DIR_SYSTEMD_SYSTEM/$SERVICE_FILE_SYSTEMD_SYSTEM" |
| 915 | + RemoveFile "$TARGET_HELPER_SERVICE_DIR_SYSTEMD_USER/$SERVICE_FILE_SYSTEMD_USER" |
| 916 | + RemoveFile "$TARGET_HELPER_SERVICE_DIR_INIT/$SERVICE_FILE_INIT" |
926 | 917 |
|
927 | 918 | Logger "Skipping configuration files in [$CONF_DIR]. You may remove this directory manually." "NOTICE" |
928 | 919 | } |
929 | 920 |
|
930 | 921 | function Usage { |
931 | 922 | echo "Installs $PROGRAM into $BIN_DIR" |
932 | 923 | echo "options:" |
933 | | - echo "--silent Will log and bypass user interaction." |
934 | | - echo "--no-stats Used with --silent in order to refuse sending anonymous install stats." |
| 924 | + echo "--silent Will log and bypass user interaction." |
| 925 | + echo "--no-stats Used with --silent in order to refuse sending anonymous install stats." |
935 | 926 | echo "--remove Remove the program." |
936 | 927 | echo "--prefix=/path Use prefix to install path." |
937 | 928 | exit 127 |
|
0 commit comments