[DRE-commits] [diaspora-installer] 01/02: create /run/diaspora for non systemd systems
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Apr 23 14:31:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository diaspora-installer.
commit 66bdaf7ce0c5999f67ca18d19e07be3a4696ecf4
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sun Apr 23 18:39:57 2017 +0530
create /run/diaspora for non systemd systems
---
debian/diaspora-common.postinst | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/debian/diaspora-common.postinst b/debian/diaspora-common.postinst
index 1a2e8b2..5658183 100755
--- a/debian/diaspora-common.postinst
+++ b/debian/diaspora-common.postinst
@@ -42,6 +42,13 @@ case "$1" in
mkdir -p /var/cache/diaspora
chown ${diaspora_user}: /var/cache/diaspora
+ # Create temporary directory
+ mkdir -p /run/diaspora
+ chown ${diaspora_user}:www-data /run/diaspora
+ chmod 2750 /run/diaspora
+ ln -s /var/cache/diaspora /run/diaspora/cache
+ runuser -u ${diaspora_user} -- sh -c 'mkdir -p /run/diaspora/pids'
+
# Create writable directories and files
su ${diaspora_user} -s /bin/sh -c 'mkdir -p ~/.bundle ~/public ~/app-assets'
su ${diaspora_user} -s /bin/sh -c 'touch ~/Gemfile.lock'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git
More information about the Pkg-ruby-extras-commits
mailing list