aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorache <ache@ache.one>2020-11-24 08:27:44 +0100
committerache <ache@ache.one>2020-11-24 08:27:44 +0100
commit6eae426a7ee632a40f916286b0fa88db916c8bbc (patch)
tree8265f650cecaa485d8a5c2a46286e4e1e94b9e1e /Makefile
parentUpdate everything (diff)
New instructions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 95d438f..89e3087 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
-
DIR_INSTALL_PATH=/usr/share/dicofr/
-DIR_BIN=/usr/bin/
+DIR_BIN=/usr/sbin/
install:
mkdir -p ${DIR_INSTALL_PATH}
- cp -u *.py *.sql ${DIR_INSTALL_PATH}
- cp -u dicofr.py ${DIR_BIN}/dicofr
- chmod +rw ${DIR_BIN}/dicofr
+ # Copy everything to ${DIR_INSTALL_PATH}
+ cp -u *.py ${DIR_INSTALL_PATH}
+ cp -r download ${DIR_INSTALL_PATH}/download
+ cp -r assets ${DIR_INSTALL_PATH}/assets
+ #
+ # Disabled DEBUG to production
+ sed -i 's/DEBUG = True/DEBUG = False/' ${DIR_INSTALL_PATH}/*.py
+ # Set permission and command
+ chmod +x ${DIR_INSTALL_PATH}/dicofr.py
+ ln -s ${DIR_INSTALL_PATH}/dicofr.py ${DIR_BIN}/dicofr
+ chmod +x ${DIR_BIN}/dicofr