rename nexus dir

This commit is contained in:
dave 2021-03-11 21:28:51 -08:00
parent 83e4244059
commit 22c1ee2b9c
3 changed files with 5 additions and 3 deletions

View File

@ -11,8 +11,8 @@ RUN useradd --create-home nexus && \
ln -s /data/nexus_authorized_keys /home/nexus/.ssh/authorized_keys ln -s /data/nexus_authorized_keys /home/nexus/.ssh/authorized_keys
# Misc conf # Misc conf
RUN mkdir /start.d /nexus /var/run/sshd && \ RUN mkdir /start.d /data /var/run/sshd && \
chown nexus /nexus && \ chown nexus /data && \
rm /etc/ssh/ssh_host_* && \ rm /etc/ssh/ssh_host_* && \
mkdir /etc/ssh/keys && \ mkdir /etc/ssh/keys && \
sed -i -E 's/#?HostKey \/etc\/ssh\//HostKey \/data\/keys\//' /etc/ssh/sshd_config && \ sed -i -E 's/#?HostKey \/etc\/ssh\//HostKey \/data\/keys\//' /etc/ssh/sshd_config && \

View File

@ -8,6 +8,8 @@ server {
server_name localhost; server_name localhost;
#client_body_temp_path /data/tmp/; #client_body_temp_path /data/tmp/;
#fastcgi_temp_path /data/tmp/;
#proxy_temp_path /data/tmp/;
#auth_basic "Restricted"; #auth_basic "Restricted";
#auth_basic_user_file /data/htpasswd; #auth_basic_user_file /data/htpasswd;

2
start
View File

@ -3,7 +3,7 @@
# run everything in start.d # run everything in start.d
find /start.d -type f -executable -exec {} \; find /start.d -type f -executable -exec {} \;
chown nexus /nexus chown nexus /data
# start services # start services
exec supervisord exec supervisord