1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

[fix] Mongodb key change

This commit is contained in:
ljf 2017-12-14 21:55:35 +01:00
parent e157642171
commit bb99cca1cc
5 changed files with 9 additions and 4 deletions

View file

@ -2,7 +2,7 @@
"name": "Wekan",
"id": "wekan",
"packaging_format": 1,
"version": "0.54-2",
"version": "0.54-3",
"description": {
"en": "Trello-like kanban",
"fr": "Un kanban similaire à Trello"

View file

@ -51,7 +51,7 @@ ynh_app_setting_set $app port $port
ynh_install_nodejs 4.8.4
# Install mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
ynh_install_app_dependencies "mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools"

View file

@ -54,7 +54,8 @@ ynh_remove_nodejs
# REMOVE MONGODB
#=================================================
# TODO / FIXME : remove the keys added ?
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
#apt-key del EA312927
#apt-key del 0C49F3730359A14518585931BC711F9BA15703C6
#rm -f /etc/apt/sources.list.d/mongodb-org-3.2.list

View file

@ -55,7 +55,7 @@ ynh_system_user_create $app "$final_path"
ynh_install_nodejs 4.8.4
# Install mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list
ynh_install_app_dependencies "mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools"

View file

@ -51,6 +51,10 @@ if ynh_version_gt "0.54-2" "${version}" ; then
systemctl enable mongod
systemctl restart mongod
fi
if ynh_version_gt "0.54-3" "${version}" ; then
apt-key del EA312927
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
fi
#=================================================
# STANDARD UPGRADE STEPS