Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 88781144
authored
Oct 17, 2019
by
Girish Ramakrishnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename surfer_root to public
1 parent
8a6c431c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
start.sh
start.sh
View file @
8878114
...
...
@@ -5,25 +5,11 @@ set -eu
export
NODE_ENV
=
production
export
TOKENSTORE_FILE
=
/app/data/tokens.json
if
[[
! -d
"/app/data/surfer_root"
]]
;
then
echo
"=> Migrating root folder from /app/data to /app/data/surfer_root"
mkdir -p /app/data/surfer_root
for
file
in
`
find /app/data -maxdepth 1 -mindepth 1 -type f -printf
"%f
\n
"
`
;
do
echo
" => Moving /app/data/
${
file
}
"
mv
"/app/data/
${
file
}
"
/app/data/surfer_root
done
for
dir
in
`
find /app/data -maxdepth 1 -mindepth 1 -type d -printf
"%f
\n
"
`
;
do
if
[[
"
$dir
"
!
=
"surfer_root"
]]
;
then
echo
" => Moving /app/data/
${
dir
}
"
mv
"/app/data/
${
dir
}
"
/app/data/surfer_root
fi
done
fi
[[
-d /app/data/surfer_root
]]
&&
mv /app/data/surfer_root /app/data/public
mkdir -p /app/data/public
echo
"=> Ensure permissions"
chown -R cloudron:cloudron /app/data
echo
"=> Start the server"
exec
/usr/local/bin/gosu cloudron:cloudron node /app/code/server.js /app/data/
surfer_root
/app/data/.surfer.json
exec
/usr/local/bin/gosu cloudron:cloudron node /app/code/server.js /app/data/
public
/app/data/.surfer.json
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment