diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2002-02-12 16:29:26 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2002-02-12 16:29:26 +0000 |
commit | abfb017114bc8cc9dbabd9787c05ef4922b30196 (patch) | |
tree | e3cdc8743571c7bfc753e2d37286709af24a728a | |
parent | 2d043f4f7f34189f6e5ae668fee10b72073c082e (diff) | |
download | drakx-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar drakx-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.gz drakx-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.bz2 drakx-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.xz drakx-abfb017114bc8cc9dbabd9787c05ef4922b30196.zip |
Added forgotten '$prefix'es.
-rw-r--r-- | perl-install/printer.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm index 9f606a686..6985a4ddd 100644 --- a/perl-install/printer.pm +++ b/perl-install/printer.pm @@ -126,7 +126,7 @@ sub set_permissions { sub restart_service ($) { my ($service) = @_; # Exit silently if the service is not installed - if (!(-x "/etc/rc.d/init.d/$service")) { + if (!(-x "$prefix/etc/rc.d/init.d/$service")) { return 1; } run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "restart"); @@ -144,7 +144,7 @@ sub restart_service ($) { sub start_service ($) { my ($service) = @_; # Exit silently if the service is not installed - if (!(-x "/etc/rc.d/init.d/$service")) { + if (!(-x "$prefix/etc/rc.d/init.d/$service")) { return 1; } run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start"); @@ -162,7 +162,7 @@ sub start_service ($) { sub stop_service ($) { my ($service) = @_; # Exit silently if the service is not installed - if (!(-x "/etc/rc.d/init.d/$service")) { + if (!(-x "$prefix/etc/rc.d/init.d/$service")) { return 1; } run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "stop"); |