mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
commit
46af7c5eed
3 changed files with 24 additions and 5 deletions
4
README.md
Normal file
4
README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ampache package for YunoHost
|
||||
|
||||
* [Ampache website](http://ampache.org/)
|
||||
* [YunoHost website](https://yunohost.org)
|
|
@ -5,24 +5,32 @@
|
|||
"en": "A web based audio/video streaming application",
|
||||
"fr": "Une application de streaming audio et vidéo"
|
||||
},
|
||||
"developer": {
|
||||
"url": "http://ampache.org",
|
||||
"license": "free",
|
||||
"maintainer": {
|
||||
"name": "beudbeud",
|
||||
"email": "beudbeud@beudibox.fr",
|
||||
"url": "http://ampache.org"
|
||||
"email": "beudbeud@beudibox.fr"
|
||||
},
|
||||
"multi_instance": "true",
|
||||
"services" : [
|
||||
"nginx",
|
||||
"php5-fpm",
|
||||
"mysql"
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain for Ampache",
|
||||
"fr": "Choisissez un domaine pour Ampache"
|
||||
"en": "Choose a domain name for Ampache",
|
||||
"fr": "Choisissez un nom de domaine pour Ampache"
|
||||
},
|
||||
"example": "domain.org"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "path",
|
||||
"ask": {
|
||||
"en": "Choose a path for Ampache",
|
||||
"fr": "Choisissez un chemin pour Ampache"
|
||||
|
@ -32,6 +40,7 @@
|
|||
},
|
||||
{
|
||||
"name": "admin",
|
||||
"type": "user",
|
||||
"ask": {
|
||||
"en": "Choose the Ampache administrator (must be an existing YunoHost user)",
|
||||
"fr": "Administrateur du serveur Ampache (doit etre un utilisateur Yunohost existant)"
|
||||
|
|
|
@ -5,6 +5,12 @@ db_name=ampache
|
|||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
domain=$(sudo yunohost app setting ampache domain)
|
||||
|
||||
# Drop MySQL database
|
||||
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||||
|
||||
# Remove sources
|
||||
sudo rm -rf /var/www/ampache
|
||||
|
||||
# Remove Nginx configuration and reload Nginx conf
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ampache.conf
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue