1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joomla_ynh.git synced 2024-09-03 19:26:34 +02:00
This commit is contained in:
Éric Gaspar 2023-10-30 10:09:06 +01:00
parent 18b7b898b6
commit 790510f207
3 changed files with 5 additions and 7 deletions

View file

@ -40,9 +40,9 @@ class JConfig
/* Database Settings */
public $dbtype = 'mysqli'; // Normally mysqli
public $host = 'localhost'; // This is normally set to localhost
public $user = '__DB_USER__'; // Database username
public $password = '__DB_PWD__'; // Database password
public $db = '__DB_NAME__'; // Database name
public $user = '__DB_USER__'; // Database username
public $password = '__DB_PWD__'; // Database password
public $db = '__DB_NAME__'; // Database name
public $dbprefix = 'jos_'; // Any random string ending with _
public $dbencryption = 0;
public $dbsslverifyservercert = false;
@ -57,7 +57,7 @@ class JConfig
public $error_reporting = 'default';
public $helpurl = 'https://help.joomla.org/proxy?keyref=Help{major}{minor}:{keyref}&lang={langcode}';
public $tmp_path = '/tmp'; // This path needs to be writable by Joomla!
public $log_path = '/var/log/__APP__'; // This path needs to be writable by Joomla!
public $log_path = '/var/log/__APP__'; // This path needs to be writable by Joomla!
public $live_site = ''; // Optional, full URL to Joomla install.
public $force_ssl = 0; // Force areas of the site to be SSL ONLY. 0 = None, 1 = Administrator, 2 = Both Site and Administrator

View file

@ -60,7 +60,7 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "mariadb-server, php8.2-xml, php8.2-cli, php8.2-posix, php8.2-bz2, php8.2-zip, php8.2-memcache, php8.2-memcached, php8.2-ldap, php8.2-curl, php8.2-sockets, php8.2-mcrypt, php8.2-mysql, php8.2-gd, php8.2-fileinfo, php8.2-mbstring"
packages = "mariadb-server, php8.2-xml, php8.2-cli, php8.2-posix, php8.2-bz2, php8.2-zip, php8.2-memcache, php8.2-memcached, php8.2-ldap, php8.2-curl, php8.2-sockets, php8.2-mcrypt, php8.2-mysql, php8.2-mysqli, php8.2-gd, php8.2-fileinfo, php8.2-mbstring"
[resources.database]
type = "mysql"

View file

@ -62,8 +62,6 @@ chown $app:$app "$install_dir/configuration.php"
#=================================================
ynh_script_progression --message="Setuping database..."
ynh_secure_remove --file="$install_dir/installation"
pushd "$install_dir/cli"
php$phpversion joomla.php user:add --username "$admin" --name "$admin" --password "$password" --email "$email" --usergroup "Super Users" -n
popd