Change ownership of directories
This commit is contained in:
parent
f38951fba1
commit
8689da0b99
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ if ! [[ -f "Server-Files-$SERVER_VERSION.zip" ]]; then
|
||||||
DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g')
|
DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g')
|
||||||
if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then
|
if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then
|
||||||
cd "${DIR_TEST}"
|
cd "${DIR_TEST}"
|
||||||
|
find . -type d -exec chmod 777 {} +
|
||||||
mv -f * /data
|
mv -f * /data
|
||||||
cd /data
|
cd /data
|
||||||
rm -fr "$DIR_TEST"
|
rm -fr "$DIR_TEST"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue