Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
chris
flyers
Commits
42ee94b6
Commit
42ee94b6
authored
Oct 08, 2019
by
chris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debian: set www-data group ownership
parent
4c32d6fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
debian/flyers.postinst
debian/flyers.postinst
+3
-2
No files found.
debian/flyers.postinst
View file @
42ee94b6
...
...
@@ -4,7 +4,7 @@ set -e
NAME
=
"flyers"
USER
=
$NAME
GROUP
=
$NAME
GROUP
=
www-data
CONFIG_DIR
=
"/etc/
$NAME
"
MANAGE_SCRIPT
=
"/usr/bin/
$NAME
-manage"
...
...
@@ -20,7 +20,8 @@ case "$1" in
# ensure dirs ownership
chown
$USER
:
$GROUP
/var/log/
$NAME
chown
$USER
:
$GROUP
/var/lib/
$NAME
/static
chown
$USER
:
$GROUP
/var/lib/
$NAME
/media
chown
-R
$USER
:
$GROUP
/var/lib/
$NAME
/media
find /var/lib/
$NAME
/media
-type
d
-exec
chmod
g+s
{}
\;
# create a secret file
SECRET_FILE
=
$CONFIG_DIR
/secret
if
[
!
-f
$SECRET_FILE
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment