pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-redmine50/files



Module Name:    pkgsrc
Committed By:   triaxx
Date:           Wed Apr 19 15:43:17 UTC 2023

Modified Files:
        pkgsrc/devel/ruby-redmine50/files: redmine50_migrate_plugins.sh
            redmine50_unicorn.sh

Log Message:
ruby-redmine50: Add conditional inclusion of rc.subr in rc.d script


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh \
    pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh
diff -u pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh:1.2 pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh:1.3
--- pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh:1.2  Fri Apr 14 06:57:31 2023
+++ pkgsrc/devel/ruby-redmine50/files/redmine50_migrate_plugins.sh      Wed Apr 19 15:43:17 2023
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-/etc/rc.d/redmine50_unicorn status > /dev/null 2>&1
+@PKG_SYSCONFDIR@/rc.d/redmine50_unicorn.sh status > /dev/null 2>&1
 
 if [ $? -eq 0 ]; then
        echo 'Please, stop Redmine unicorn before running this script.'
Index: pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh
diff -u pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh:1.2 pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh:1.3
--- pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh:1.2  Fri Apr 14 06:57:31 2023
+++ pkgsrc/devel/ruby-redmine50/files/redmine50_unicorn.sh      Wed Apr 19 15:43:17 2023
@@ -1,13 +1,15 @@
 #!/bin/sh
 #
-# $NetBSD: redmine50_unicorn.sh,v 1.2 2023/04/14 06:57:31 triaxx Exp $
+# $NetBSD: redmine50_unicorn.sh,v 1.3 2023/04/19 15:43:17 triaxx Exp $
 #
 
 # PROVIDE: redmine50_unicorn@RUBY_SUFFIX@
 # REQUIRE: DAEMON
 # KEYWORD: shutdown
 
-. /etc/rc.subr
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+       $_rc_subr_loaded . @SYSCONFBASE@/rc.subr
+fi
 
 name="redmine50_unicorn@RUBY_SUFFIX@"
 rcvar=$name



Home | Main Index | Thread Index | Old Index