From 0d4f06b0c4a519c20c7a2d56f2d17df543a8a3f5 Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Wed, 2 May 2018 19:08:50 +0800 Subject: [PATCH] v1.3.1 after-install.sh: fix file mode install default file mode is 755. --- project.clj | 2 +- src/leiningen/new/python/deb-scripts/after-install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project.clj b/project.clj index fd31538..eabe9ac 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "1.3.0" +(defproject python/lein-template "1.3.1" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" diff --git a/src/leiningen/new/python/deb-scripts/after-install.sh b/src/leiningen/new/python/deb-scripts/after-install.sh index a189d69..224d7c5 100644 --- a/src/leiningen/new/python/deb-scripts/after-install.sh +++ b/src/leiningen/new/python/deb-scripts/after-install.sh @@ -20,9 +20,9 @@ make bootstrap # if you enable logrotate.conf, remember to choose a good rotate interval and # set how many copies to keep. -# install "$PREFIX/conf/logrotate.conf" /etc/logrotate.d/{{name}} -# install "$PREFIX/conf/web.upstart" /etc/init/{{name}}.conf -# install "$PREFIX/conf/web.service" /etc/systemd/system/{{name}}.service +# install -m 644 "$PREFIX/conf/logrotate.conf" /etc/logrotate.d/{{name}} +# install -m 644 "$PREFIX/conf/web.upstart" /etc/init/{{name}}.conf +# install -m 644 "$PREFIX/conf/web.service" /etc/systemd/system/{{name}}.service # service {{name}} start || true # SITE_FILE=/etc/nginx/conf.d/{{name}}.conf -- GitLab