No more chmod or chgrp
This commit is contained in:
parent
9e5bf0aa6d
commit
84bc5176af
@ -21,8 +21,6 @@ choose() {
|
||||
|
||||
mkdir -p "../content/users/$user${target%/*}/"
|
||||
cp "../content/pages$target.md" "../content/users/$user${target%/*}/"
|
||||
chmod -R g+rw "../content/users/$user${target%/*}/"
|
||||
chgrp -R www-data "../content/users/$user${target%/*}/"
|
||||
|
||||
# Delete former result files
|
||||
rm "$dir"/*.result
|
||||
|
@ -9,7 +9,5 @@ kind=$(cat "$dir/$file")
|
||||
echo "Creating content/$kind/$page"
|
||||
|
||||
hugo --source=.. new "content/$kind/$page"
|
||||
chmod -R g+rw "content/$kind/$page"
|
||||
chgrp -R www-data "content/$kind/$page"
|
||||
|
||||
./ac_route.sh "$dir/$page" _index.md
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
dir=$1 file=$2
|
||||
|
||||
echo
|
||||
echo "Default actions for $dir/$file"
|
||||
|
||||
create() {
|
||||
@ -18,8 +17,6 @@ create() {
|
||||
|
||||
mkdir -p "$target"
|
||||
cp "../content$value.md" "$target"
|
||||
chmod -R g+rw "$target"
|
||||
chgrp -R www-data "$target"
|
||||
|
||||
./ac_route.sh "$target" "${value##*/}.md"
|
||||
done
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
# Routing acoeur commands to corresponding shell command
|
||||
|
||||
echo
|
||||
echo "Triggering command for $1 $2"
|
||||
|
||||
cd "$(dirname "$0")" || exit
|
||||
|
@ -1,4 +1,3 @@
|
||||
---
|
||||
title: Utilisateurs
|
||||
---
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
</aside>
|
||||
|
||||
{{ with .Content }}
|
||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
<section id="content"
|
||||
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
||||
{{- . -}}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user