fix script permissions
This commit is contained in:
parent
40db7a8eb1
commit
70282fb091
|
@ -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
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue