{"action":"closed","issue":{"url":"https://api.github.com/repos/makinacorpus/Geotrek/issues/1261","labels_url":"https://api.github.com/repos/makinacorpus/Geotrek/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/makinacorpus/Geotrek/issues/1261/comments","events_url":"https://api.github.com/repos/makinacorpus/Geotrek/issues/1261/events","html_url":"https://github.com/makinacorpus/Geotrek/issues/1261","id":46677063,"number":1261,"title":"Script to add to improve synchro / Ajout d'un script pour faciliter la synchronisation","user":{"login":"celine971","id":7569517,"avatar_url":"https://avatars.githubusercontent.com/u/7569517?v=3","gravatar_id":"","url":"https://api.github.com/users/celine971","html_url":"https://github.com/celine971","followers_url":"https://api.github.com/users/celine971/followers","following_url":"https://api.github.com/users/celine971/following{/other_user}","gists_url":"https://api.github.com/users/celine971/gists{/gist_id}","starred_url":"https://api.github.com/users/celine971/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celine971/subscriptions","organizations_url":"https://api.github.com/users/celine971/orgs","repos_url":"https://api.github.com/users/celine971/repos","events_url":"https://api.github.com/users/celine971/events{/privacy}","received_events_url":"https://api.github.com/users/celine971/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/makinacorpus/Geotrek/labels/scope:%20rando","name":"scope: rando","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-23T21:05:50Z","updated_at":"2015-10-05T15:29:58Z","closed_at":"2015-10-05T15:29:58Z","body":"------------PNG/N.Martinon\r\n* Ajout d'un script pour faciliter la synchonisation\r\n-------------------------------------------------------------\r\n  - Fichier : synchro\r\n  - Contenu :\r\n#!/bin/bash \r\nif [ \"$(id -u)\" != \"0\" ]; then \r\n   echo \"Seul l'utilisateur root peut exécuter ce script\" 1>&2 \r\n   echo \"La commande doit être 'sudo $0'\" 1>&2 \r\n   exit 1 \r\nfi \r\n\r\ncd Geotrek-rando \r\nmake sync \r\nservice apache2 restart \r\ncd ..\r\n  - Usage : Après connexion ssh, exécuter la commande \"sudo ./synchro\"\r\n-------------------------------------------------------------\r\nNB : Makina/M. Leplatre\r\n-- Le restart d'Apache n'est nécessaire que pour vider le cache HTML qui est d'1H\r\n-- Ajouter un directive dans le fichier Makefile pour pouvoir faire sudo make sync restart\r\n"}}