Fix permissions of mounts in the devcontainer

This commit is contained in:
Amaury Bodet
2025-04-27 20:44:39 +00:00
parent 02bb76ae11
commit 94c347e1a0

View File

@@ -95,6 +95,25 @@
"cwd": "${workspaceFolder}/src"
}
},
{
"label": "Maintenance: Ownership of mounted folders",
"description": "Change the ownership of mounted folders to the paperless user",
"type": "shell",
"command": "sudo chown -R paperless:paperless .coverage consume data htmlcov media",
"group": "none",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": true,
"revealProblems": "onProblem"
},
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "Maintenance: manage.py migrate",
"description": "Apply database migrations",
@@ -205,6 +224,7 @@
"description": "Runs all init tasks to setup the project including migrate the database, create a superuser and compile the frontend for production",
"dependsOrder": "sequence",
"dependsOn": [
"Maintenance: Ownership of mounted folders",
"Maintenance: manage.py migrate",
"Maintenance: manage.py createsuperuser",
"Maintenance: Compile frontend for production"