mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
fixup dir/file init
This commit is contained in:
parent
369802f2af
commit
c8eb7ad127
1 changed files with 21 additions and 20 deletions
|
|
@ -22,26 +22,27 @@ shadow-setup
|
|||
|
||||
echo $"Running as ($HAZE_UID):($HAZE_GID)"
|
||||
|
||||
mkdir /var/www/html/core/skeleton \
|
||||
/var/www/html/build/integration/vendor \
|
||||
/var/www/html/build/integration/output \
|
||||
/var/www/html/build/integration/work \
|
||||
/var/www/html/core/skeleton \
|
||||
/var/www/.composer/cache \
|
||||
/var/www/html/apps/spreed/tests/integration/vendor/composer
|
||||
chown -R $"($HAZE_UID):($HAZE_GID)" /var/www/html/data /var/www/html/config
|
||||
chown $"($HAZE_UID):($HAZE_GID)" /var/www/html/core/skeleton \
|
||||
/var/www/html/build/integration/vendor \
|
||||
/var/www/html/build/integration/composer.lock \
|
||||
/var/www/html/build/integration/output \
|
||||
/var/www/html/build/integration/work \
|
||||
/var/www/html/core/skeleton \
|
||||
/var/www/.composer/cache \
|
||||
/var/www/html/apps/spreed \
|
||||
/var/www/html/apps/spreed/tests \
|
||||
/var/www/html/apps/spreed/tests/integration \
|
||||
/var/www/html/apps/spreed/tests/integration/vendor \
|
||||
/var/www/html/apps/spreed/tests/integration/vendor/composer
|
||||
let dirs = [
|
||||
"/var/www/html/data"
|
||||
"/var/www/html/config"
|
||||
"/var/www/html/build/integration/vendor",
|
||||
"/var/www/html/build/integration/output",
|
||||
"/var/www/html/build/integration/work",
|
||||
"/var/www/html/apps/spreed",
|
||||
"/var/www/html/apps/spreed/tests",
|
||||
"/var/www/html/apps/spreed/tests/integration",
|
||||
"/var/www/html/apps/spreed/tests/integration/vendor",
|
||||
"/var/www/html/apps/spreed/tests/integration/vendor/composer",
|
||||
];
|
||||
|
||||
let files = [
|
||||
"/var/www/html/build/integration/composer.lock",
|
||||
]
|
||||
|
||||
$dirs | each { |dir| mkdir $dir }
|
||||
$files | each { |file| touch $file }
|
||||
|
||||
$dirs | append $files | each { |path| chown -R $"($HAZE_UID):($HAZE_GID)" $path }
|
||||
|
||||
echo "{}\n" | save -f /var/www/html/build/integration/composer.lock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue