Diff of /main/trunk/platform/unix/oorexx.spec.in [r9258] .. [r9375]  Maximize  Restore

Switch to side-by-side view

--- a/main/trunk/platform/unix/oorexx.spec.in
+++ b/main/trunk/platform/unix/oorexx.spec.in
@@ -252,21 +252,21 @@
 # Add the rxapi service
 if [ -x /usr/bin/systemctl ]; then
    ln -sf %{_datadir}/ooRexx/rxapid.service /etc/systemd/system/multi-user.target.wants/rxapid.service
-   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
+   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
    ldconfig
    systemctl start rxapid.service
 elif [ -x /sbin/insserv ]; then
    ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
    # try insserv first (for Suse)
    insserv -f rxapid
-   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
+   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
    ldconfig
    service rxapid start
 else
    ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
    # else, try good old chkconfig
    chkconfig --add rxapid
-   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
+   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
    ldconfig
    service rxapid start
 fi
@@ -279,6 +279,8 @@
    systemctl stop rxapid.service
    # Remove misc
    rm -f /etc/systemd/system/rxapid.service
+   rm -f /etc/ld.so.conf.d/ooRexx.conf
+   ldconfig
 elif [ -x /sbin/insserv ]; then
    service rxapid stop
    # try insserv first (for Suse)
@@ -287,6 +289,8 @@
    rm -f /etc/init.d/rxapid
    # Remove misc
    rm -f %{_bindir}/rexxtry.rex
+   rm -f /etc/ld.so.conf.d/ooRexx.conf
+   ldconfig
 else
    service rxapid stop
    # else, try good old chkconfig
@@ -295,6 +299,8 @@
    rm -f /etc/init.d/rxapid
    # Remove misc
    rm -f %{_bindir}/rexxtry.rex
+   rm -f /etc/ld.so.conf.d/ooRexx.conf
+   ldconfig
 fi
 
 #******************************************************************************