relocate /www to /var/www

Relocate writable /www to /var/www

Story: 2009101
Task: 43536
Depends-on: https://review.opendev.org/c/starlingx/metal/+/810023
Change-Id: Ie4506518c2d2e1e40ae38de864395de98dfb176d
Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
Bin Qian 2021-08-16 16:11:39 -04:00
parent 5c26d065ad
commit 5195889724
7 changed files with 16 additions and 16 deletions

View File

@ -17,7 +17,7 @@ source /etc/platform/platform.conf
if [ -n "$wrs_install_uuid" ]; then
if [ "$nodetype" == "controller" ]; then
source /etc/build.info
file="/www/pages/feed/rel-$SW_VERSION/install_uuid"
file="/var/www/pages/feed/rel-$SW_VERSION/install_uuid"
INSTALL_UUID=$(cat "$file")
fi
if [ "$INSTALL_UUID" != "$wrs_install_uuid" ]; then

View File

@ -30,7 +30,7 @@ StarlingX lighttpd configuration file
%install
CONFDIR=%{buildroot}%{_sysconfdir}/lighttpd
ROOTDIR=%{buildroot}/www
ROOTDIR=%{buildroot}/var/www
install -d -m 1777 ${ROOTDIR}/tmp
install -d ${CONFDIR}/ssl
@ -67,7 +67,7 @@ fi
%{_datadir}/starlingx/lighttpd.conf
%{_datadir}/starlingx/lighttpd.logrotate
%{_datadir}/starlingx/lighttpd.init
%dir /www/pages/
/www/pages/*
%dir /var/www/pages/
/var/www/pages/*
%config(noreplace) %{_sysconfdir}/lighttpd/lighttpd-inc.conf
/www/pages/index.html
/var/www/pages/index.html

View File

@ -39,7 +39,7 @@ server.modules = (
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "/www/pages/"
server.document-root = "/var/www/pages/"
## where to send error-messages to
server.errorlog = "/var/log/lighttpd-error.log"

View File

@ -54,11 +54,11 @@ start()
done
echo -n "Mounting scratch filesystem to chroot tmp..."
umount /www/tmp >& /dev/null
umount /var/www/tmp >& /dev/null
rm -r /scratch/lighttpd >& /dev/null
mkdir -p /scratch/lighttpd
mount --bind /scratch/lighttpd /www/tmp/
chown www /www/tmp/
mount --bind /scratch/lighttpd /var/www/tmp/
chown www /var/www/tmp/
echo -n "Starting $DESC..."
@ -86,7 +86,7 @@ stop()
fi
rm -f $PIDFILE
echo -n "Unmounting scratch filesystem from chroot tmp..."
umount /www/tmp
umount /var/www/tmp
}
status()

View File

@ -1,7 +1,7 @@
/var/log/lighttpd-access.log
/var/log/lighttpd-error.log
/www/var/log/lighttpd-access.log
/www/var/log/lighttpd-error.log {
/var/www/var/log/lighttpd-access.log
/var/www/var/log/lighttpd-error.log {
nodateext
size 10M
start 1

View File

@ -21,7 +21,7 @@ read only = yes
read only = no
[repo]
path = /www/pages/updates
path = /var/www/pages/updates
comment = Patching repo
uid = root
read only = no
@ -51,7 +51,7 @@ read only = yes
read only = no
[helm_charts]
path = /www/pages/helm_charts
path = /var/www/pages/helm_charts
comment = Helm chart repo
uid = root
read only = no

View File

@ -21,7 +21,7 @@ read only = yes
read only = no
[repo]
path = /www/pages/updates
path = /var/www/pages/updates
comment = Patching repo
uid = root
read only = no
@ -51,7 +51,7 @@ read only = yes
read only = no
[helm_charts]
path = /www/pages/helm_charts
path = /var/www/pages/helm_charts
comment = Helm chart repo
uid = root
read only = no