Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grew
grew_match
Commits
1038e937
Commit
1038e937
authored
May 11, 2020
by
Bruno Guillaume
Browse files
fix install_template
parent
2f586a38
Changes
1
Hide whitespace changes
Inline
Side-by-side
install_template.sh
View file @
1038e937
...
...
@@ -9,7 +9,7 @@ mkdir -p $DEST
# Copy the files in the right place
cp
*
.php
*
.xml
*
.html
*
.png
$DEST
cp
-r
corpora css fonts icon js tuto
$DEST
cp
-r
corpora css fonts icon js tuto
vendor
$DEST
# build local folders for storing data
cd
$DEST
...
...
@@ -17,9 +17,7 @@ mkdir -p data/shorten
chmod
-R
777 data
# build other useful folders
mkdir
-p
_tables
mkdir
-p
_logs
mkdir
-p
_descs
mkdir
-p
_meta
# update parameters in the code
cat
main.php |
sed
"s+@PORT@+
${
PORT
}
+"
|
sed
"s+@DATADIR@+
$DEST
/data/+"
>
__tmp_file
&&
mv
-f
__tmp_file main.php
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment