forked from tylda-public/helpers
.gnupg & .ssh was not owned by user
This commit is contained in:
@@ -81,7 +81,7 @@ USER_CG="$CG_ROOT/$LOGIN"
|
||||
mkdir "$USER_CG"
|
||||
|
||||
# gemini
|
||||
gmi="/home/$LOGIN/public_gemini"
|
||||
gmi="/home/$LOGIN/public_gemini/"
|
||||
mkdir -p $gmi
|
||||
ln -s $gmi /srv/gemini/~$LOGIN
|
||||
|
||||
@@ -90,14 +90,14 @@ cat <<EOF > $gmi/index.gmi
|
||||
EOF
|
||||
# end gemini
|
||||
|
||||
chown -R $LOGIN:$LOGIN /home/$LOGIN/
|
||||
|
||||
mkdir -p /home/$LOGIN/.ssh
|
||||
mkdir -p /home/$LOGIN/.gnupg
|
||||
|
||||
chmod 0700 /home/$LOGIN/.ssh
|
||||
chmod 0700 /home/$LOGIN/.gnupg
|
||||
|
||||
chown -R $LOGIN:$LOGIN /home/$LOGIN/
|
||||
|
||||
curl -X POST https://cloud.tylda.org/ocs/v1.php/cloud/users -d userid="$LOGIN" -d password="$PASS" -H "OCS-APIRequest: true" -u "$NEXTCLOUD_USER:$NEXTCLOUD_PASS"
|
||||
curl -X PUT "https://cloud.tylda.org/ocs/v1.php/cloud/users/$LOGIN" -H "OCS-APIRequest: true" -u "$NEXTCLOUD_USER:$NEXTCLOUD_PASS" -d key="quota" -d value="250MB"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user