File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 92
92
93
93
export TG_SHIRAKAMI_OPTIONS=" ${TG_SHIRAKAMI_OPTIONS} "
94
94
95
+ _INSTALL_WARNING_MESSAGES=" "
96
+
95
97
echo -e " \n[Install Tsurugi]"
96
98
echo " ------------------------------------"
97
99
cat ${TG_INSTALL_BASE_DIR} /BUILDINFO.md
@@ -120,6 +122,18 @@ if [[ ! ${TG_SKIP_INSTALL} == *"server"* ]]; then
120
122
else
121
123
${_SCRIPTS_DIR} /generate-tsurugi-info.sh > " ${TG_INSTALL_DIR} /lib/tsurugi-info.json"
122
124
fi
125
+
126
+ if [[ 1777 != $( stat --format=%a /var/lock/) ]]; then
127
+ _WARNMSG=$( cat << 'EOF '
128
+
129
+ [WARNING] /var/lock/ is not set to 1777.
130
+ Tsurugi uses /var/lock/ as the default location to create the lock file at startup.
131
+ However, the permissions on /var/lock/ are currently not set to 1777, which prevents non-privileged users from writing to this directory.
132
+ If you are starting tsurugidb process as a non-privileged user, edit the system.pid_directory parameter in var/etc/tsurugi.ini accordingly.
133
+ EOF
134
+ )
135
+ _INSTALL_WARNING_MESSAGES=" ${_INSTALL_WARNING_MESSAGES}${_WARNMSG} "
136
+ fi
123
137
fi
124
138
125
139
if [[ ! ${TG_SKIP_INSTALL} == * " nativelib" * ]]; then
151
165
echo " ------------------------------------"
152
166
echo -e " [Install Tsurugi successful]"
153
167
echo " Install Directory: ${TG_INSTALL_DIR} "
168
+
169
+ if [ " ${_INSTALL_WARNING_MESSAGES} " != " " ]; then
170
+ echo " ${_INSTALL_WARNING_MESSAGES} "
171
+ fi
172
+
154
173
echo " ------------------------------------"
174
+
175
+ echo
You can’t perform that action at this time.
0 commit comments