mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
add avconv vs ffmpeg installer
This commit is contained in:
parent
b1eb44ee19
commit
4b6cbcfc35
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@ domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
admin_ampache=$3
|
admin_ampache=$3
|
||||||
|
|
||||||
|
debianversionname=$(lsb_release -a | grep Codename | awk -F' ' '{print $2}')
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a ampache
|
sudo yunohost app checkurl $domain$path -a ampache
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
|
@ -64,6 +66,9 @@ echo "127.0.0.1 $domain #yunoampache" | sudo tee -a /etc/hosts
|
||||||
sleep 1
|
sleep 1
|
||||||
curl -kL -X POST http://$domain$path/update.php?action=update > /dev/null 2>&1
|
curl -kL -X POST http://$domain$path/update.php?action=update > /dev/null 2>&1
|
||||||
sleep 5
|
sleep 5
|
||||||
|
[ "$debianversionname" == "wheezy" ] && \
|
||||||
|
sudo sed -i 's/;transcode_cmd = "ffmpeg"/transcode_cmd = "ffmpeg"/g' /var/www/ampache/config/ampache.cfg.php && \
|
||||||
|
sudo sed -i 's/^transcode_cmd = "avconv"/;transcode_cmd = "avconv"/g' /var/www/ampache/config/ampache.cfg.php
|
||||||
sudo yunohost app setting ampache skipped_uris -d
|
sudo yunohost app setting ampache skipped_uris -d
|
||||||
sudo yunohost app setting ampache skipped_uris -v "/rest"
|
sudo yunohost app setting ampache skipped_uris -v "/rest"
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue