diff --git a/scripts/restore b/scripts/restore index 804703b..3fb0021 100644 --- a/scripts/restore +++ b/scripts/restore @@ -89,12 +89,12 @@ ynh_install_app_dependencies $pkg_dependencies mkdir -p $final_path/transcode -if [ -x /usr/bin/ffmpeg ]; then # Check if 'ffmpeg' is installed and executable +if [ -x /usr/bin/ffmpeg -a ! -e $final_path/transcode/ffmpeg ]; then # Check if 'ffmpeg' is installed and executable ln -s /usr/bin/ffmpeg $final_path/transcode fi # FIXME Not sure if 'lame' is needed ? -if [ -x /usr/bin/lame ]; then # Check if 'lame' is installed and executable +if [ -x /usr/bin/lame -a ! -e $final_path/transcode/lame ]; then # Check if 'lame' is installed and executable ln -s /usr/bin/lame $final_path/transcode fi diff --git a/scripts/upgrade b/scripts/upgrade index 1c29d16..40370a5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,12 +119,12 @@ ynh_system_user_create --username=$app mkdir -p $final_path/transcode -if [ -x /usr/bin/ffmpeg ]; then # Check if 'ffmpeg' is installed and executable +if [ -x /usr/bin/ffmpeg -a ! -e $final_path/transcode/ffmpeg ]; then # Check if 'ffmpeg' is installed and executable ln -s /usr/bin/ffmpeg $final_path/transcode fi # FIXME Not sure if 'lame' is needed ? -if [ -x /usr/bin/lame ]; then # Check if 'lame' is installed and executable +if [ -x /usr/bin/lame -a ! -e $final_path/transcode/lame ]; then # Check if 'lame' is installed and executable ln -s /usr/bin/lame $final_path/transcode fi