No more chmod or chgrp

This commit is contained in:
echarp 2022-11-07 22:30:43 +01:00
parent 9e5bf0aa6d
commit 84bc5176af
6 changed files with 3 additions and 9 deletions

View File

@ -21,8 +21,6 @@ choose() {
mkdir -p "../content/users/$user${target%/*}/" mkdir -p "../content/users/$user${target%/*}/"
cp "../content/pages$target.md" "../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 # Delete former result files
rm "$dir"/*.result rm "$dir"/*.result

View File

@ -9,7 +9,5 @@ kind=$(cat "$dir/$file")
echo "Creating content/$kind/$page" echo "Creating content/$kind/$page"
hugo --source=.. new "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 ./ac_route.sh "$dir/$page" _index.md

View File

@ -5,7 +5,6 @@
dir=$1 file=$2 dir=$1 file=$2
echo
echo "Default actions for $dir/$file" echo "Default actions for $dir/$file"
create() { create() {
@ -18,8 +17,6 @@ create() {
mkdir -p "$target" mkdir -p "$target"
cp "../content$value.md" "$target" cp "../content$value.md" "$target"
chmod -R g+rw "$target"
chgrp -R www-data "$target"
./ac_route.sh "$target" "${value##*/}.md" ./ac_route.sh "$target" "${value##*/}.md"
done done

View File

@ -2,6 +2,7 @@
# Routing acoeur commands to corresponding shell command # Routing acoeur commands to corresponding shell command
echo
echo "Triggering command for $1 $2" echo "Triggering command for $1 $2"
cd "$(dirname "$0")" || exit cd "$(dirname "$0")" || exit

View File

@ -1,4 +1,3 @@
--- ---
title: Utilisateurs title: Utilisateurs
--- ---

View File

@ -12,7 +12,8 @@
</aside> </aside>
{{ with .Content }} {{ 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> </section>
{{ end }} {{ end }}