Browse Source

config of samba update

master
filesite 2 years ago
parent
commit
a30a33ea2c
  1. 2
      Dockerfile_samba
  2. 2
      bin/install.sh
  3. 1
      conf/smb.conf

2
Dockerfile_samba

@ -51,7 +51,7 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
&& yum -y install kde-l10n-Chinese \ && yum -y install kde-l10n-Chinese \
&& yum -y reinstall glibc-common \ && yum -y reinstall glibc-common \
&& localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \ && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \
&& echo 'LANG="zh_CN.UTF-8"' >> /etc/locale.conf \ && echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf \
&& echo 'export LC_ALL="zh_CN.UTF-8"' >> ~/.bashrc && echo 'export LC_ALL="zh_CN.UTF-8"' >> ~/.bashrc
EXPOSE 9000/tcp EXPOSE 9000/tcp

2
bin/install.sh

@ -26,7 +26,7 @@ sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/g' php.ini
yum -y install kde-l10n-Chinese yum -y install kde-l10n-Chinese
yum -y reinstall glibc-common yum -y reinstall glibc-common
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
echo 'LANG="zh_CN.UTF-8"' >> /etc/locale.conf echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf
echo 'export LC_ALL="zh_CN.UTF-8"' >> ~/.bashrc echo 'export LC_ALL="zh_CN.UTF-8"' >> ~/.bashrc
## start php-fpm in background ## start php-fpm in background

1
conf/smb.conf

@ -1,7 +1,6 @@
[global] [global]
dos charset = cp866 dos charset = cp866
unix charset = UTF8 unix charset = UTF8
display charset = UTF8
[machete] [machete]
path = /var/www/sambashare/filesite path = /var/www/sambashare/filesite

Loading…
Cancel
Save