Skip to content

Commit

Permalink
Create ~data~ subfolders to prevent errors in chmod command
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Feb 26, 2024
1 parent b03c4b4 commit 44c37f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -74,7 +74,7 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "~6.5",
"add-dist-header": "~1.3",
"add-dist-header": "~1.4",
"bestzip": "~2.2",
"copy-file-util": "~1.1",
"copy-folder-util": "~1.1",
Expand Down
3 changes: 2 additions & 1 deletion tools/build.sh.command
Expand Up @@ -16,6 +16,7 @@ apacheLog=$pkgInstallHome/var/log/httpd/error_log
webDocRoot=$(grep ^DocumentRoot $apacheCfg/httpd.conf | awk -F'"' '{ print $2 }')
cliFlagMsg="Use the '--fast' flag to skip npm update"
cliFlag=$1
consoleUrl=http://localhost/paradise-deploy/gallery/console

npmUpdate() {
npm install --no-fund
Expand Down Expand Up @@ -120,6 +121,7 @@ unzipRelease() {
unzip -o $projectHome/releases/paradise-v*.zip
chmod -v uo+rwx gallery
accessData() { #avoid problems if web server runs as a different user
curl $consoleUrl/sign-in/ | wc -m #create ~data~ subfolders
chmod -v uo+rwx gallery/~data~
cd gallery/~data~
chmod -v uo+rwx backups* portfolio secure* uploads
Expand All @@ -131,7 +133,6 @@ unzipRelease() {

openConsole() {
echo "*** Open Console"
consoleUrl=http://localhost/paradise-deploy/gallery/console/
echo "Folder: $webDocRoot/paradise-deploy/gallery/~data~/"
echo "URL: $consoleUrl"
sleep 2
Expand Down

0 comments on commit 44c37f3

Please sign in to comment.