fix script permissions

This commit is contained in:
wh1te909 2020-02-09 22:14:05 +00:00
parent 40db7a8eb1
commit 70282fb091
2 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ def download_script(request, pk):
return response
else:
response = HttpResponse()
response["Content-Disposition"] = "attachment; filename=debug.log"
response["Content-Disposition"] = f"attachment; filename={script.filename}"
response["X-Accel-Redirect"] = f"/protectedscripts/{script.filename}"
return response

View File

@ -527,9 +527,9 @@ sudo mkdir -p /srv/salt
sudo cp -r /home/${USER}/rmm/_modules /srv/salt/
sudo cp -r /home/${USER}/rmm/scripts /srv/salt/
sudo mkdir /srv/salt/scripts/userdefined
sudo chown root:root -R /srv/salt/
sudo chown root:${USER} -R /srv/salt/scripts/
sudo chmod 770 -R /srv/salt/scripts/
sudo chown ${USER}:${USER} -R /srv/salt/
sudo chown ${USER}:www-data /srv/salt/scripts/userdefined
sudo chmod 750 /srv/salt/scripts/userdefined
meshservice="$(cat << EOF
[Unit]