Last active
May 13, 2020 22:02
-
-
Save shvchk/461b6a0ab0ef11780a956448125eb6e0 to your computer and use it in GitHub Desktop.
Simple Anbox environments management
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| def_env="/var/snap/anbox/common" | |
| snap stop anbox | |
| rm ${def_env}/logs/* # optional logs cleaning, remove it not needed | |
| rm ${def_env}/data/system.log* # optional logs cleaning, remove it not needed | |
| rm ${def_env} | |
| ln -s ${def_env}-${1} ${def_env} | |
| snap start anbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment