diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-08 15:33:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-08 15:33:08 +0200 |
| commit | e6a5b2bc5e08f68d13c5293a9812f3deddb4ce60 (patch) | |
| tree | da135824fcfcf41bf1a396d88ca31f175ae5d638 /scripts/upgrade | |
| parent | 1747e72792334f15456e75fcd19ca7d13c7236ea (diff) | |
| download | mastodon_ynh-e6a5b2bc5e08f68d13c5293a9812f3deddb4ce60.tar.gz mastodon_ynh-e6a5b2bc5e08f68d13c5293a9812f3deddb4ce60.tar.bz2 mastodon_ynh-e6a5b2bc5e08f68d13c5293a9812f3deddb4ce60.zip | |
[enh] Switch release on mastodon user (#27)
* Update README
* [enh] Switch branch with mastodon user
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index ea548b9..f070bbd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,7 +50,10 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live -sudo git checkout $(git tag | tail -n 1) +sudo su - $app <<SWITCHCOMMANDS +pushd ~/live +git checkout $(git tag | tail -n 1) +SWITCHCOMMANDS # Apply Mastodon upgrade sudo su - $app <<COMMANDS |
