Compare commits
3 Commits
e9fb08f2ca
...
64d8d629fe
Author | SHA1 | Date | |
---|---|---|---|
64d8d629fe | |||
4fd5335bdb | |||
87af07fc60 |
@ -15,3 +15,9 @@ db['db'] = 'Database Name'
|
||||
#- db['data_path_mysql'] = '/var/lib/mysql'
|
||||
#- db['data_path_mysql_backup'] = '/var/lib/mysql'
|
||||
#- db['port'] = 3306
|
||||
#- db['host'] = localhost
|
||||
|
||||
## Api Configuration
|
||||
api = {}
|
||||
#- api['ip'] = '0.0.0.0'
|
||||
#- api['port'] = 81
|
||||
|
@ -14,9 +14,12 @@ echo "Executing Clean tasks"
|
||||
rm -rf src/docker-compose.yml || CLEAN_ERROR_ID=1
|
||||
|
||||
## Clean DB-Data
|
||||
rm -rf {% if db.data_path_mysql is defined %}{{ data_path_mysql }}{% else %}./src/db/cache/mysql_data{% endif %} || CLEAN_ERROR_ID=3
|
||||
sudo rm -rf {% if db.data_path_mysql is defined %}{{ data_path_mysql }}{% else %}./src/db/cache/mysql_data{% endif %} || CLEAN_ERROR_ID=3
|
||||
rm -rf {% if db.data_path_mysql_backup is defined %}{{ data_path_mysql_backup }}{% else %}./src/db/cache/mysql_backup{% endif %} || CLEAN_ERROR_ID=4
|
||||
|
||||
## Remove everything in binary directory
|
||||
rm -rf bin/* || CLEAN_ERROR_ID=5
|
||||
rm -rf bin/.env || CLEAN_ERROR_ID=6
|
||||
# Post Task
|
||||
## Remove Clean script itself
|
||||
rm -rf src/clean-data.sh || CLEAN_ERROR_ID=2
|
||||
|
Loading…
Reference in New Issue
Block a user