Add central ports mount for all jails (#58)
* Add central ports mount for all jails, auto fetch, extract and auto update on install. * Some verbosity cleanup
This commit is contained in:
committed by
kjeld Schouten-Lebbing
parent
839abbe8ff
commit
b24a7c153a
@ -134,11 +134,6 @@ fi
|
||||
#
|
||||
#####
|
||||
|
||||
# Create and Mount portsnap
|
||||
createmount ${JAIL_NAME} ${global_dataset_config}/portsnap
|
||||
createmount ${JAIL_NAME} ${global_dataset_config}/portsnap/db /var/db/portsnap
|
||||
createmount ${JAIL_NAME} ${global_dataset_config}/portsnap/ports /usr/ports
|
||||
|
||||
# Create and Mount Nextcloud, Config and Files
|
||||
createmount ${JAIL_NAME} ${global_dataset_config}/${JAIL_NAME}/config /usr/local/www/nextcloud/config
|
||||
createmount ${JAIL_NAME} ${global_dataset_config}/${JAIL_NAME}/themes /usr/local/www/nextcloud/themes
|
||||
@ -159,8 +154,6 @@ iocage exec "${JAIL_NAME}" chmod -R 770 /config/files
|
||||
#
|
||||
#####
|
||||
|
||||
iocage exec "${JAIL_NAME}" "if [ -z /usr/ports ]; then portsnap fetch extract; else portsnap auto; fi"
|
||||
|
||||
if [ "${DATABASE}" = "mariadb-external" ] || [ "${DATABASE}" = "mariadb-jail" ]; then
|
||||
iocage exec "${JAIL_NAME}" pkg install -qy mariadb103-client php73-pdo_mysql php73-mysqli
|
||||
elif [ "${DATABASE}" = "pgsql-external" ]; then
|
||||
|
Reference in New Issue
Block a user