Commit e7676f95 authored by Paul Cammish's avatar Paul Cammish
Browse files

Fixes #295

parent d5e9c142
......@@ -7,6 +7,7 @@ CHANGELOG
sympl-core
* sympl-filesystem-security: don't overwite permission in public/cgi-bin (#299)
* sympl-filesystem-security: correctly read the group id (#298)
* sympl-cli: fix permissions on newly created domains (#295)
2020-07-06
sympl-web
......
......@@ -2,7 +2,7 @@
#
# Sympl command line interface.
#
# Copyright 2019, Paul Cammish <sympl@kelduum.net>, part of the Sympl Project.
# Copyright 2019-2020 the Sympl Project - https://sympl.host
#
# Licenced under GPL3+
#
......@@ -215,6 +215,10 @@ _web_create() {
fi
_verbose "Creating Website for $1 at /srv/$1/public/htdocs..."
if [ ! -d "/srv/$1" ]; then
mkdir -p "/srv/$1"
chown -R sympl:sympl "/srv/$1" > /dev/null 2>&1
fi
mkdir -p "/srv/$1/public/htdocs"
chmod -R 2775 "/srv/$1/public" > /dev/null 2>&1
chown -R www-data:www-data "/srv/$1/public" > /dev/null 2>&1
......
......@@ -2,6 +2,7 @@ sympl-core (10.0.200909.0) stable; urgency=medium
* sympl-filesystem-security: don't overwite permission in public/cgi-bin (#299)
* sympl-filesystem-security: correctly read the group id (#298)
* sympl-cli: fix permissions on newly created domains (#295)
-- Paul Cammish <sympl@kelduum.net> Wed, 09 Sep 2020 12:22:09 +0100
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment