1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

Check the sources with sha256 from phpmyadmin.net

This commit is contained in:
polytan02 2017-02-15 13:57:22 +00:00
parent afc86ae55a
commit 894516c646
3 changed files with 12 additions and 10 deletions

View file

@ -38,11 +38,12 @@ ynh_app_setting_set $app path $path
ynh_app_setting_set $app admin $admin
# Copy files to the right place
version=$(cat ../conf/upstream_version)
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O ../phpMyAdmin.tar.gz
#sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
version=$(cat ../sources/upstream_version)
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O phpMyAdmin-$version-all-languages.tar.gz
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz.sha256 -O phpMyAdmin-$version-all-languages.tar.gz.sha256
sudo sha256sum -c phpMyAdmin-$version-all-languages.tar.gz.sha256 --status || (echo "Corrupt source" >&2 && false)
sudo tar xzf phpMyAdmin-$version-all-languages.tar.gz -C ../sources/ > /dev/null 2>&1
sudo cp -r ../sources/phpMyAdmin-$version-all-languages/* $final_path
# Create db
#GENERATE_DB $app # Créer une base de données et un utilisateur dédié au nom de l'app.

View file

@ -18,11 +18,12 @@ db_user=$(ynh_app_setting_get $app db_user)
CHECK_PATH # Vérifie et corrige la syntaxe du path.
# Copy files to the right place
version=$(cat ../conf/upstream_version)
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O ../phpMyAdmin.tar.gz
#sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
version=$(cat ../sources/upstream_version)
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O phpMyAdmin-$version-all-languages.tar.gz
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz.sha256 -O phpMyAdmin-$version-all-languages.tar.gz.sha256
sudo sha256sum -c phpMyAdmin-$version-all-languages.tar.gz.sha256 --status || (echo "Corrupt source" >&2 && false)
sudo tar xzf phpMyAdmin-$version-all-languages.tar.gz -C ../sources/ > /dev/null 2>&1
sudo cp -r ../sources/phpMyAdmin-$version-all-languages/* $final_path
# Update tables
sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql