fix some permissions
This commit is contained in:
parent
2c11085e5e
commit
a15f130950
3 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,7 @@ if [[ $OS = "arch" ]]; then
|
|||
cp -r /install/apache/* /etc/httpd/
|
||||
mv /etc/httpd/httpd.conf /etc/httpd/conf/httpd.conf
|
||||
|
||||
mkdir -p /srv/servnest/ht/usr/lib
|
||||
mkdir -m 0755 -p /srv/servnest/ht/usr/lib
|
||||
ln /usr/lib/libc.so.6 /srv/servnest/ht/usr/lib/libc.so.6
|
||||
fi
|
||||
|
||||
|
@ -34,7 +34,7 @@ if [[ $OS = "debian" ]]; then
|
|||
sed -i 's/LoadModule log_config_module/#LoadModule log_config_module/' /etc/apache2/apache2.conf
|
||||
sed -i 's#/var/log/httpd/#/var/log/apache2/#g' /etc/apache2/apache2.conf
|
||||
|
||||
mkdir -p /srv/servnest/ht/lib/x86_64-linux-gnu
|
||||
mkdir -m 0755 -p /srv/servnest/ht/lib/x86_64-linux-gnu
|
||||
ln /lib/x86_64-linux-gnu/libgcc_s.so.1 /srv/servnest/ht/lib/x86_64-linux-gnu/libgcc_s.so.1
|
||||
ln /lib/x86_64-linux-gnu/libc.so.6 /srv/servnest/ht/lib/x86_64-linux-gnu/libc.so.6
|
||||
fi
|
||||
|
|
|
@ -16,6 +16,9 @@ done
|
|||
# Create translation Machine Objects files
|
||||
msgfmt /srv/servnest/core/locales/fr/C/LC_MESSAGES/messages.po -o /srv/servnest/core/locales/fr/C/LC_MESSAGES/messages.mo
|
||||
|
||||
chmod u=rX,g=rX,o=rX /srv/servnest /srv/servnest/core
|
||||
chown root:root /srv/servnest /srv/servnest/core
|
||||
|
||||
chmod -R u=rX,g=rX,o= $(find /srv/servnest/core -mindepth 1 -maxdepth 1 ! -name .git ! -name db)
|
||||
chown -R $servnest:$nginx $(find /srv/servnest/core -mindepth 1 -maxdepth 1 ! -name .git ! -name db)
|
||||
|
||||
|
|
|
@ -27,4 +27,4 @@ fi
|
|||
sed -i 's/local_only_check = false/local_only_check = true/' /srv/servnest/core/config.ini
|
||||
|
||||
chmod u=rwX,g=rX,o=rX / /etc /etc/tor/torrc
|
||||
chmod -R u=rwX,g=rX,o=rX /etc/php
|
||||
chmod -R u=rwX,g=rX,o=rX /etc/php /etc/knot-resolver
|
||||
|
|
Loading…
Reference in a new issue