OSDN Git Service

debian: create pid file directory in postinst, and add robots.txt to sradjp-assets
authorhylom <hylom@users.sourceforge.jp>
Fri, 17 Mar 2017 08:42:10 +0000 (17:42 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 17 Mar 2017 08:42:10 +0000 (17:42 +0900)
debian/newslash-sradjp.postinst
debian/rules

index ae83868..eb05df7 100644 (file)
@@ -20,6 +20,7 @@ set -e
 case "$1" in
     configure)
       systemctl daemon-reload
+      mkdir -p /var/run/newslash
       #systemctl start newslash
     ;;
 
index 6e5b1cc..be4056e 100755 (executable)
@@ -46,13 +46,14 @@ install/$(ASSETS)::
        cd $(SRCDIR); \
        find ./public/vue ! -name '*~' ! -type l \
          -exec install -pDm 644 {} $(ASSETS_DEST)/{} \;
-       cd $(SRCDIR); \
+i      cd $(SRCDIR); \
        find ./external/bootstrap-3.3.7 ! -name '*~' ! -type l \
          -exec install -pDm 644 {} $(ASSETS_DEST)/{} \;
        ln -sf ../../external/escape-html.js/js/escape-html.js $(ASSETS_DEST)/public/js/escape-html.js
        ln -sf ../external/bootstrap-3.3.7/dist $(ASSETS_DEST)/public/bootstrap
        ln -sf ../external/bootstrap-3.3.7/fonts $(ASSETS_DEST)/public/fonts
        install -pDm 644 $(SRCDIR)/external/escape-html.js/js/escape-html.js $(ASSETS_DEST)/external/escape-html.js/js/escape-html.js
+       install -pDm 644 $(SRCDIR)/public/robots.txt $(ASSETS_DEST)/public/robots.txt
        mkdir $(ASSETS_DEST)/public/css
 
 install/$(SRAD)::