From dd9e0bdb550c246133705d1e15c54e365b1bd3b5 Mon Sep 17 00:00:00 2001 From: phildd Date: Tue, 7 Aug 2012 16:08:17 +0545 Subject: Change rcfileprefix to a constant --- etc/rc.start_packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.start_packages b/etc/rc.start_packages index 80e7aaf..15f62e1 100755 --- a/etc/rc.start_packages +++ b/etc/rc.start_packages @@ -41,7 +41,7 @@ require_once("service-utils.inc"); log_error("Restarting/Starting all packages."); setup_library_paths(); -$rcfiles = glob("{$rcfileprefix}*.sh"); +$rcfiles = glob(RCFILEPREFIX . "*.sh"); if (!$rcfiles) $rcfiles = array(); else { @@ -55,7 +55,7 @@ if (is_array($config['installedpackages']['package'])) { echo " Starting package {$package['name']}..."; sync_package($package['name']); start_service($package['name']); - unset($rcfiles["{$rcfileprefix}{$package['name']}.sh"]); + unset($rcfiles[RCFILEPREFIX . $package['name'] . ".sh"]); echo "done.\n"; } } -- cgit v1.1