diff --git a/build/ripping-cluster-worker.init-gentoo b/build/ripping-cluster-worker.init-gentoo index 559f5fa..3f7eabc 100644 --- a/build/ripping-cluster-worker.init-gentoo +++ b/build/ripping-cluster-worker.init-gentoo @@ -11,7 +11,7 @@ start() { ebegin "Starting ripping-cluster-worker" start-stop-daemon --start --quiet \ --background --make-pidfile --pidfile ${PID_FILE} \ - --chuid ${USER} --user ${USER} \ + --user ${USER} \ --exec /usr/bin/php /usr/lib/ripping-cluster/source/worker/ripping-cluster-worker.php eend $? "Failed to start ripping-cluster-worker" } @@ -23,7 +23,9 @@ stop() { local ret=$? eend ${ret} "Failed to stop ripping-cluster-worker" - ${ret} || rm -f ${PID_FILE} + if [[ "${ret}" == 0 ]]; then + rm -f ${PID_FILE} + fi return ${ret} } diff --git a/source/lib/RippingCluster/Main.class.php b/source/lib/RippingCluster/Main.class.php index 302fd97..93fca14 100644 --- a/source/lib/RippingCluster/Main.class.php +++ b/source/lib/RippingCluster/Main.class.php @@ -37,7 +37,7 @@ class RippingCluster_Main extends SihnonFramework_Main { $this->smarty->registerPlugin('modifier', 'formatDuration', array('RippingCluster_Main', 'formatDuration')); $this->smarty->registerPlugin('modifier', 'formatFilesize', array('RippingCluster_Main', 'formatFilesize')); - $this->smarty->assign('version', '0.4'); + $this->smarty->assign('version', '0.4.1'); $this->smarty->assign('messages', array()); $this->smarty->assign('base_uri', $this->base_uri); diff --git a/source/webui/templates/index.tpl b/source/webui/templates/index.tpl index 5e73423..cd600c4 100644 --- a/source/webui/templates/index.tpl +++ b/source/webui/templates/index.tpl @@ -85,11 +85,11 @@