mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Re-enabled YunoHost shortcut to dashboard now that nginx conf do works
This commit is contained in:
parent
7de3e36cab
commit
27e851ec47
4 changed files with 10 additions and 5 deletions
|
@ -4,8 +4,12 @@ Currently following [this guide](https://yunohost.org/#/packaging_apps_fr) to pa
|
|||
|
||||
# TODO
|
||||
|
||||
- Test backup
|
||||
- Test restore
|
||||
- Add a 'protected' value to 'public' argument, so admin interface is protected
|
||||
- Replace 'password' argument by http_auth or ldap authent
|
||||
|
||||
# Backup & Restore
|
||||
|
||||
Default YunoHost installation got a small bug that prevent `yunohost backup create`, here's the fix: `sed -i -e "302s/logging/logger/" /usr/lib/moulinette/yunohost/backup.py`
|
||||
|
||||
Yet it doesn't seems to save apps, at least in my test environment. To be investigated.
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@ location YNH_WWW_PATH {
|
|||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
# include conf.d/yunohost_panel.conf.inc;
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -29,13 +29,12 @@ sudo yunohost app setting $app admin -v "$admin"
|
|||
sudo yunohost app setting $app admin_password -v "$admin_password"
|
||||
sudo yunohost app setting $app is_public -v "$is_public"
|
||||
|
||||
|
||||
# Make sure we got the tools we need for this install
|
||||
sudo apt-get install -y curl wget sed
|
||||
|
||||
# Initialize database and store mysql password for upgrade
|
||||
db_password=`sudo yunohost app initdb $app | tr -d '\n'`
|
||||
sudo yunohost app setting $app mysqlpwd -v $db_password
|
||||
sudo yunohost app setting $app db_password -v $db_password
|
||||
|
||||
# Get sources
|
||||
sudo wget -nv http://download.dotclear.org/latest.tar.gz -O $app.tgz
|
||||
|
|
|
@ -10,6 +10,8 @@ backup_dir=$1/apps/$app
|
|||
sudo cp -a $backup_dir/sources/. /var/www/$app
|
||||
|
||||
# Restore database
|
||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
mysql -u root -p$root_pwd -e "DROP DATABASE $app ;"
|
||||
db_password=$(sudo yunohost app setting $app db_password)
|
||||
sudo yunohost app initdb $app -p "$db_password" -s $backup_dir/dump.sql
|
||||
|
||||
|
|
Loading…
Reference in a new issue