mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 16:08:41 +00:00
fix(install): Update Dockerfile for mysql connection issue (#92)
if the pid of mysqld after reboot equal to before it will need to delete the /run/mysqld/mysqld.sock
This commit is contained in:
parent
480202a9b9
commit
2b3cfc0df4
@ -11,6 +11,7 @@ RUN git clone https://github.com/UniversalOJ/UOJ-System.git --depth 1 --single-b
|
|||||||
#Install environment and set startup script
|
#Install environment and set startup script
|
||||||
RUN cd uoj/install/bundle && sh install.sh -p && echo "\
|
RUN cd uoj/install/bundle && sh install.sh -p && echo "\
|
||||||
#!/bin/sh\n\
|
#!/bin/sh\n\
|
||||||
|
rm -rf /run/mysqld/*\n\
|
||||||
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld\n\
|
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld\n\
|
||||||
if [ ! -f \"/var/uoj_data/.UOJSetupDone\" ]; then\n\
|
if [ ! -f \"/var/uoj_data/.UOJSetupDone\" ]; then\n\
|
||||||
cd /opt/uoj/install/bundle && sh install.sh -i\n\
|
cd /opt/uoj/install/bundle && sh install.sh -i\n\
|
||||||
|
Loading…
Reference in New Issue
Block a user