Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:images
nginx-container-kiwi
images.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File images.sh of Package nginx-container-kiwi
#!/bin/sh # Copyright (c) 2022, Ilmi Solutions Oy # All Rights reserved # Email: ilmi@ilmi.fi # # Description: # Tune Image after creation # test -f /.kconfig && . /.kconfig test -f /.profile && . /.profile if [ -z "${kiwi_iname}" ] then kiwi_iname="nginx-container-kiwi" fi if [ -z "${kiwi_profiles}" ] then kiwi_profiles="XEN" fi echo "Configure image: [$kiwi_iname]..." #========================================== # setup build day #------------------------------------------ baseSetupBuildDay #====================================== # Correct owner #-------------------------------------- mv /etc/nginx/nginx.conf.basicssl /etc/nginx/nginx.conf chown -R nginx.nginx /etc/nginx chmod -R og-rwx /etc/nginx chown -R root.root /srv chown -R nginx.nginx /srv/www chmod -R o-rwx /srv/www chown -R nginx.nginx /var/log/nginx chmod -R o-rwx /srv/www chmod -R root.nginx /run chmod -r ug+rwx /run # Correct PID location /run/ is no.. no.. so # use home dir sed -i "s/#pid/pid/" /etc/nginx/nginx.conf sed -i "s#/var/run#/var/lib/nginx/#" /etc/nginx/nginx.conf if [ -d /etc/php7 ] then chown -R nginx.nginx /etc/php7 chmod -R og-rwx /etc/php7 fi if [ -d /etc/php8 ] then chown -R nginx.nginx /etc/php8 chmod -R og-rwx /etc/php8 fi #====================================== # Remove un-needed dirs #-------------------------------------- rm -rf /usr/share/appdata rm -rf /usr/share/applications rm -rf /usr/share/bash rm -rf /usr/share/cracklib rm -rf /usr/share/dict rm -rf /usr/share/doc rm -rf /usr/share/fillup-templates rm -rf /usr/share/fontconfig rm -rf /usr/share/fonts rm -rf /usr/share/games rm -rf /usr/share/help rm -rf /usr/share/icons rm -rf /usr/share/info rm -rf /usr/share/java rm -rf /usr/share/licenses rm -rf /usr/share/man rm -rf /usr/share/metainfo rm -rf /usr/share/mime rm -rf /usr/share/misc rm -rf /usr/share/omc rm -rf /usr/share/p11-kit rm -rf /usr/share/pixmaps rm -rf /usr/share/pkgconfig rm -rf /usr/share/sgml rm -rf /usr/share/sounds rm -rf /usr/share/tabset rm -rf /usr/share/themes rm -rf /usr/share/xml rm -rf /usr/share/xsessions rm -rf /usr/share/zypp rm -rf /usr/lib/browser-plugins rm -rf /usr/lib/cracklib_dict.hwm rm -rf /usr/lib/cracklib_dict.pwd rm -rf /usr/lib/cracklib_dict.pwi rm -rf /usr/lib/getconf rm -rf /usr/lib/libproxy-0.4.15 rm -rf /usr/lib/modprobe.d rm -rf /usr/lib/pkgconfig rm -rf /usr/lib/restricted rm -rf /usr/lib/sysctl.d rm -rf /usr/lib/systemd rm -rf /usr/lib/sysusers.d rm -rf /usr/lib/tmpfiles.d rm -rf /usr/lib/X11 rm -rf /usr/lib/zypp suseImportBuildKey exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor