mirror of
https://github.com/YunoHost-Apps/phpldapadmin_ynh.git
synced 2024-09-03 19:56:45 +02:00
nettoyage
This commit is contained in:
parent
00654a47ba
commit
508f78fac0
2 changed files with 0 additions and 18 deletions
|
@ -29,23 +29,8 @@ echo "Extracting to $final_path..."
|
|||
sudo tar xvzf ../phpLDAPadmin.tar.gz -C .. > /dev/null 2>&1
|
||||
sudo cp -r ../phpldapadmin-$version/* $final_path
|
||||
|
||||
# Create db
|
||||
#echo "Setting up database..."
|
||||
#db_user=phpldapadmin
|
||||
#db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||
#sed -i "s@YNH_PMA_USER@$db_user@g" ../conf/create_db.sql
|
||||
#sudo yunohost app initdb $db_user -p $db_pwd
|
||||
#mysql -u root -p$(sudo cat /etc/yunohost/mysql) < ../conf/create_db.sql
|
||||
#mysql -u $db_user -p$db_pwd < ../conf/create_tables.sql
|
||||
# mysql -u root -p$(sudo cat /etc/yunohost/mysql) < ../conf/create_tables.sql
|
||||
#sudo yunohost app setting phpldapadmin mysqlpwd -v $db_pwd
|
||||
|
||||
# Configuration
|
||||
echo "Configuring application..."
|
||||
#sed -i "s@YNH_DOMAIN@$domain@g" ../conf/config.php
|
||||
#sed -i "s@YNH_PMA_USER@$db_user@g" ../conf/config.php
|
||||
#sed -i "s@YNH_PMA_PASSWORD@$db_pwd@g" ../conf/config.php
|
||||
#sed -i "s@YNH_MYSQL_ROOT_PASSWORD@$(sudo cat /etc/yunohost/mysql)@g" ../conf/config.php
|
||||
sudo cp ../conf/config.php $final_path/config/
|
||||
|
||||
sudo yunohost app addaccess phpldapadmin -u $admin
|
||||
|
|
|
@ -6,6 +6,3 @@ sudo rm -rf /var/www/phpldapadmin
|
|||
sudo rm -f /etc/nginx/conf.d/$domain.d/phpldapadmin.conf
|
||||
|
||||
sudo service nginx reload
|
||||
|
||||
#db_user=phpldapadmin
|
||||
#db_name=phpldapadmin
|
||||
|
|
Loading…
Add table
Reference in a new issue