File tree Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ nfpms:
66
66
contents :
67
67
# Ensure environment file exists with correct ownership
68
68
- src : .env
69
- dst : /etc /vilesql/.env
69
+ dst : /var/lib /vilesql/.env
70
70
type : config
71
71
file_info :
72
- mode : 600
72
+ mode : 0755
73
73
owner : vilesql
74
74
group : vilesql
75
75
@@ -96,14 +96,6 @@ nfpms:
96
96
mode : 0755
97
97
owner : vilesql
98
98
group : vilesql
99
-
100
- # Ensure config directory exists
101
- - dst : /etc/vilesql
102
- type : dir
103
- file_info :
104
- mode : 700
105
- owner : vilesql
106
- group : vilesql
107
99
scripts :
108
100
postinstall : " scripts/postinstall.sh"
109
101
preremove : " scripts/preremove.sh"
Original file line number Diff line number Diff line change 9
9
10
10
var ConfigFiles = []string {
11
11
".env" ,
12
- "/etc /vilesql/.env" ,
12
+ "/var/lib /vilesql/.env" ,
13
13
}
14
14
15
15
func GetValue (key string ) string {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ LOG_DIR="/var/log/vilesql"
9
9
LOG_FILE=" $LOG_DIR /vilesql.log"
10
10
BIN_PATH=" /usr/bin/vilesql"
11
11
SERVICE_PATH=" /etc/systemd/system/vilesql.service"
12
- ENV_FILE=" /etc /vilesql/.env"
12
+ ENV_FILE=" /var/lib /vilesql/.env"
13
13
USER=" vilesql"
14
14
GROUP=" vilesql"
15
15
Original file line number Diff line number Diff line change 5
5
6
6
SYSTEMD_SERVICE=" /etc/systemd/system/vilesql.service"
7
7
DATA_DIR=" /var/lib/vilesql"
8
- CONFIG_DIR=" /etc/vilesql "
8
+ CONFIG_DIR=" $DATA_DIR "
9
9
USER=" vilesql"
10
10
GROUP=" vilesql"
11
11
Original file line number Diff line number Diff line change 4
4
set -e
5
5
6
6
DATA_DIR=" /var/lib/vilesql"
7
- CONFIG_DIR=" /etc/vilesql "
7
+ CONFIG_DIR=" $DATA_DIR "
8
8
SYSTEMD_SERVICE=" /etc/systemd/system/vilesql.service"
9
9
USER=" vilesql"
10
10
GROUP=" vilesql"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ USER="vilesql"
7
7
GROUP=" vilesql"
8
8
SYSTEMD_SERVICE=" /etc/systemd/system/vilesql.service"
9
9
DATA_DIR=" /var/lib/vilesql"
10
- CONFIG_DIR=" /etc/vilesql "
10
+ CONFIG_DIR=" $DATA_DIR "
11
11
12
12
log () {
13
13
echo " $( date ' +%Y-%m-%d %H:%M:%S' ) - $1 "
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ USER="vilesql"
10
10
GROUP=" vilesql"
11
11
SERVICE_PATH=" /etc/systemd/system/vilesql.service"
12
12
DATA_DIR=" /var/lib/vilesql"
13
- CONFIG_DIR=" /etc/vilesql "
13
+ CONFIG_DIR=" $DATA_DIR "
14
14
15
15
log () {
16
16
echo " $( date ' +%Y-%m-%d %H:%M:%S' ) - $1 "
You can’t perform that action at this time.
0 commit comments