{"action":"created","issue":{"url":"https://api.github.com/repos/akasolace/HO/issues/23","repository_url":"https://api.github.com/repos/akasolace/HO","labels_url":"https://api.github.com/repos/akasolace/HO/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/akasolace/HO/issues/23/comments","events_url":"https://api.github.com/repos/akasolace/HO/issues/23/events","html_url":"https://github.com/akasolace/HO/issues/23","id":386786123,"node_id":"MDU6SXNzdWUzODY3ODYxMjM=","number":23,"title":"discussion about linux migration","user":{"login":"yaute74","id":34601782,"node_id":"MDQ6VXNlcjM0NjAxNzgy","avatar_url":"https://avatars0.githubusercontent.com/u/34601782?v=4","gravatar_id":"","url":"https://api.github.com/users/yaute74","html_url":"https://github.com/yaute74","followers_url":"https://api.github.com/users/yaute74/followers","following_url":"https://api.github.com/users/yaute74/following{/other_user}","gists_url":"https://api.github.com/users/yaute74/gists{/gist_id}","starred_url":"https://api.github.com/users/yaute74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaute74/subscriptions","organizations_url":"https://api.github.com/users/yaute74/orgs","repos_url":"https://api.github.com/users/yaute74/repos","events_url":"https://api.github.com/users/yaute74/events{/privacy}","received_events_url":"https://api.github.com/users/yaute74/received_events","type":"User","site_admin":false},"labels":[{"id":1113731582,"node_id":"MDU6TGFiZWwxMTEzNzMxNTgy","url":"https://api.github.com/repos/akasolace/HO/labels/Difficulty:%20Easy","name":"Difficulty: Easy","color":"efbb40","default":false},{"id":1082275364,"node_id":"MDU6TGFiZWwxMDgyMjc1MzY0","url":"https://api.github.com/repos/akasolace/HO/labels/Enhancement","name":"Enhancement","color":"27c436","default":false},{"id":1109124252,"node_id":"MDU6TGFiZWwxMTA5MTI0MjUy","url":"https://api.github.com/repos/akasolace/HO/labels/Linux","name":"Linux","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akasolace/HO/milestones/1","html_url":"https://github.com/akasolace/HO/milestone/1","labels_url":"https://api.github.com/repos/akasolace/HO/milestones/1/labels","id":3737192,"node_id":"MDk6TWlsZXN0b25lMzczNzE5Mg==","number":1,"title":"1.435","description":"","creator":{"login":"akasolace","id":1136496,"node_id":"MDQ6VXNlcjExMzY0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1136496?v=4","gravatar_id":"","url":"https://api.github.com/users/akasolace","html_url":"https://github.com/akasolace","followers_url":"https://api.github.com/users/akasolace/followers","following_url":"https://api.github.com/users/akasolace/following{/other_user}","gists_url":"https://api.github.com/users/akasolace/gists{/gist_id}","starred_url":"https://api.github.com/users/akasolace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akasolace/subscriptions","organizations_url":"https://api.github.com/users/akasolace/orgs","repos_url":"https://api.github.com/users/akasolace/repos","events_url":"https://api.github.com/users/akasolace/events{/privacy}","received_events_url":"https://api.github.com/users/akasolace/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":10,"state":"open","created_at":"2018-10-14T19:41:17Z","updated_at":"2018-12-03T19:12:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-12-03T12:00:17Z","updated_at":"2018-12-03T19:34:00Z","closed_at":null,"author_association":"NONE","body":"To continue the discussion about linux migration [post=17225693.44]\r\nWhen a user will upgrade to the 1.435 he will start with en empty database.\r\nTo prevent this problem I propose to modify the script ho.sh (to copy the database) like this:\r\n\r\n```\r\n#!/bin/sh\r\nLAUNCHDIR=\"$(dirname \"$0\")\"\r\nLAUNCHDIR=\"`eval echo $LAUNCHDIR`\"\r\nHOHOME=\"~/.ho\"\r\nHOHOME=\"`eval echo $HOHOME`\"\r\nHOOLDHOME=\"~/.hattrickorganizer\"\r\nHOOLDHOME=\"`eval echo $HOOLDHOME`\"\r\n\r\nstart(){\r\n\r\nHODIR=/usr/lib/ho/\r\n\r\nif [ ! -d \"${HOHOME}\" ]\r\nthen\r\necho \"creating ${HOHOME}\"\r\nmkdir -m 777 \"${HOHOME}\"\r\necho \"copying required ressource\"\r\ncp -R \"${HODIR}/.\" \"${HOHOME}\"\r\nfi\r\n\r\n# For old versions\r\nif [ ! -d ${HOHOME}/db ] && [ -d ${HOOLDHOME}/db ]\r\nthen\r\ncp -r ${HOOLDHOME}/db ${HOHOME}/db\r\nfi\r\n..\r\n```\r\nWhy did you say on the hattrick forum: \"What you propose I guess will not work as you expect\" ?\r\n\r\nYou propose to do it in the post install, but in the ho.sh script we create HOHOME directory, copy some files from HODIR. In that case it should be do in the post install, no ?\r\n\r\nYou plan to add it in the 'rpm' and 'deb' package ?\r\nI don't know how Gradle work, but I can try to help you, if you need\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/akasolace/HO/issues/comments/443840386","html_url":"https://github.com/akasolace/HO/issues/23#issuecomment-443840386","issue_url":"https://api.github.com/repos/akasolace/HO/issues/23","id":443840386,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzg0MDM4Ng==","user":{"login":"akasolace","id":1136496,"node_id":"MDQ6VXNlcjExMzY0OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1136496?v=4","gravatar_id":"","url":"https://api.github.com/users/akasolace","html_url":"https://github.com/akasolace","followers_url":"https://api.github.com/users/akasolace/followers","following_url":"https://api.github.com/users/akasolace/following{/other_user}","gists_url":"https://api.github.com/users/akasolace/gists{/gist_id}","starred_url":"https://api.github.com/users/akasolace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akasolace/subscriptions","organizations_url":"https://api.github.com/users/akasolace/orgs","repos_url":"https://api.github.com/users/akasolace/repos","events_url":"https://api.github.com/users/akasolace/events{/privacy}","received_events_url":"https://api.github.com/users/akasolace/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T19:34:00Z","updated_at":"2018-12-03T19:34:00Z","author_association":"OWNER","body":"> -change ~/.ho by ~/.local/share/ho (because it's more standard for new product)\r\n\r\nI actually did that in the version of the 1.435 beta, and some users complained about it, saying it was too difficult to find  :-)\r\n\r\n> copy the db directory\r\n\r\ncopy it where ?\r\n\r\n> do a backup of .hattrickorganizer\r\n\r\nwith current script, this folder is being left untouched, hence why do you want to back it ?\r\n\r\n> If we can easly generate appimage with Gradle I think it's will be nice to propose deb, rpm and appimage.\r\n\r\nUnfortunalty I do not think it is easy, I will leave as is for the time being, "}}
{"actor":{"display_login":"akasolace"}}