post_install() { echo "-------------------------------------------------------------------------------" echo "Run `php /usr/share/webapps/filebin/check_deps.php` to make sure all dependecies are installed." echo "" echo "Update 'open_basedir' in php's config to include '/tmp', '/usr/share/webapps/filebin' and '/etc/webapps/filebin' (sample php-fpm config includes that)." echo "Enable exif, phar and any of mysql, mysqli, pgsql, pdo_mysql or pdo_pgsql for database access." echo "Edit the files in '/etc/webapps/filebin'." echo "Run 'php /usr/share/webapps/filebin/index.php tools update_database' to initialize your database." echo "Run 'php /usr/share/webapps/filebin/index.php user add_user' to add your first user." echo "Additional information can be found in '/usr/share/webapps/filebin/INSTALL'." echo "" echo "For nginx and php-fpm there are sample configuration files in '/usr/share/webapps/filebin'." echo "" echo "Additionally you should enable 'filebin-user-cron.timer' and 'filebin-user-cron.timer'." echo "-------------------------------------------------------------------------------" } post_upgrade() { php /usr/share/webapps/filebin/index.php tools update_database }