Compare commits
3 commits
b86a159faa
...
0d90d15594
Author | SHA1 | Date | |
---|---|---|---|
Ben | 0d90d15594 | ||
Ben | fb5cfff56e | ||
Ben | d8ec284f53 |
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,6 @@
|
|||
/.idea
|
||||
/build
|
||||
|
||||
### Composer ###
|
||||
composer.phar
|
||||
/vendor
|
||||
|
|
1561
composer.lock
generated
Normal file
1561
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
11
podman-reown.sh
Executable file
11
podman-reown.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
DIR="${0%/*}"
|
||||
|
||||
podman unshare -- chown -R 33 "$DIR"
|
||||
podman unshare -- chgrp -R 0 "$DIR"
|
||||
podman unshare -- chmod -R ug+rw "$DIR"
|
||||
|
|
@ -6,7 +6,6 @@ IFS=$'\n\t'
|
|||
DIR="${0%/*}"
|
||||
|
||||
podman run -d --name=nextcloud --replace=true -p 8080:80 -v "$DIR:/var/www/html/custom_apps/upschooling" docker.io/nextcloud
|
||||
podman exec nextcloud chown 33 /var/www/html/custom_apps
|
||||
podman unshare chown -R 33 -R "$DIR"
|
||||
podman unshare chmod -R ug+rw "$DIR"
|
||||
|
||||
podman exec nextcloud chown -R 33 /var/www/html/custom_apps
|
||||
"$DIR/podman-reown.sh"
|
||||
podman exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make'
|
||||
|
|
Loading…
Reference in a new issue