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:
parent
afc86ae55a
commit
894516c646
3 changed files with 12 additions and 10 deletions
|
@ -38,11 +38,12 @@ ynh_app_setting_set $app path $path
|
||||||
ynh_app_setting_set $app admin $admin
|
ynh_app_setting_set $app admin $admin
|
||||||
|
|
||||||
# Copy files to the right place
|
# Copy files to the right place
|
||||||
version=$(cat ../conf/upstream_version)
|
version=$(cat ../sources/upstream_version)
|
||||||
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O ../phpMyAdmin.tar.gz
|
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O phpMyAdmin-$version-all-languages.tar.gz
|
||||||
#sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
|
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 tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
|
sudo sha256sum -c phpMyAdmin-$version-all-languages.tar.gz.sha256 --status || (echo "Corrupt source" >&2 && false)
|
||||||
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
|
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
|
# Create db
|
||||||
#GENERATE_DB $app # Créer une base de données et un utilisateur dédié au nom de l'app.
|
#GENERATE_DB $app # Créer une base de données et un utilisateur dédié au nom de l'app.
|
||||||
|
|
|
@ -18,11 +18,12 @@ db_user=$(ynh_app_setting_get $app db_user)
|
||||||
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
||||||
|
|
||||||
# Copy files to the right place
|
# Copy files to the right place
|
||||||
version=$(cat ../conf/upstream_version)
|
version=$(cat ../sources/upstream_version)
|
||||||
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O ../phpMyAdmin.tar.gz
|
sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$version-all-languages.tar.gz -O phpMyAdmin-$version-all-languages.tar.gz
|
||||||
#sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
|
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 tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
|
sudo sha256sum -c phpMyAdmin-$version-all-languages.tar.gz.sha256 --status || (echo "Corrupt source" >&2 && false)
|
||||||
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
|
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
|
# Update tables
|
||||||
sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql
|
sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql
|
||||||
|
|
Loading…
Reference in a new issue