mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
Use of cp sources/. instead of cp sources/*
This commit is contained in:
parent
7238b9fc3c
commit
b71dc520ab
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$versi
|
||||||
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 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 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 tar xzf phpMyAdmin-$version-all-languages.tar.gz -C ../sources/ > /dev/null 2>&1
|
||||||
sudo cp -r ../sources/phpMyAdmin-$version-all-languages/* $final_path
|
sudo cp -r ../sources/phpMyAdmin-$version-all-languages/. $final_path
|
||||||
|
|
||||||
# Create db
|
# Create db
|
||||||
db_user=$app
|
db_user=$app
|
||||||
|
|
|
@ -23,7 +23,7 @@ sudo wget -nv https://files.phpmyadmin.net/phpMyAdmin/$version/phpMyAdmin-$versi
|
||||||
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 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 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 tar xzf phpMyAdmin-$version-all-languages.tar.gz -C ../sources/ > /dev/null 2>&1
|
||||||
sudo cp -r ../sources/phpMyAdmin-$version-all-languages/* $final_path
|
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