]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
wsdd: Update install and uninstall pak files
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 18 Mar 2024 18:43:14 +0000 (19:43 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Mar 2024 11:13:59 +0000 (11:13 +0000)
- As wsdd is now started by samba when it is started then the wsdd install and uninstall
   paks no longer need to create the symlinks for starting and stopping wsdd and no longer
   need the start_service and stop_service commands in the paks.

Fixes: bug#13445
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/paks/wsdd/install.sh
src/paks/wsdd/uninstall.sh

index 181b84eb9964b1b2aafb92ed6fb381b5ee22ff7f..12fde4802e493168c59ae140ef41eb8756be0025 100644 (file)
@@ -24,7 +24,7 @@
 . /opt/pakfire/lib/functions.sh
 
 # If the wsdd user does not exist yet, then create it and add to wsdd group.
-if ! getent user wsdd >/dev/null; then
+if ! getent passwd wsdd >/dev/null; then
        useradd -r -U -d / -s /bin/false -c "wsdd user" wsdd
        usermod -a -G wsdd wsdd
 fi
@@ -32,9 +32,4 @@ fi
 extract_files
 restore_backup ${NAME}
 
-# Create startlinks
-ln -sf ../init.d/wsdd /etc/rc.d/rc0.d/K35wsdd
-ln -sf ../init.d/wsdd /etc/rc.d/rc3.d/S65wsdd
-ln -sf ../init.d/wsdd /etc/rc.d/rc6.d/K35wsdd
-start_service ${NAME}
 exit 0
index 4c52ee281e6cf6b39dac2ee8be759de7cb8e96e5..9dc5202f47e545dc80fe6722a15aacb0dcfb7193 100644 (file)
@@ -22,9 +22,6 @@
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
-stop_service ${NAME}
 make_backup ${NAME}
 remove_files
-# Remove all start links.
-rm -rf /etc/rc.d/rc*.d/*wsdd
 exit 0