Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2966 from CrossStream/sandbox/rzr/review/master
Browse files Browse the repository at this point in the history
scripts: Support busybox chown
  • Loading branch information
krisgesling authored Aug 18, 2021
2 parents 61cbaa7 + 0f8222e commit c039aeb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/mycroft-use.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function restore_init_scripts() {
sudo sh -c 'cat /etc/init.d/mycroft-admin-service.original > /etc/init.d/mycroft-admin-service'
sudo rm /etc/init.d/*.original
chown mycroft:mycroft /home/mycroft/.mycroft/identity/identity2.json
sudo chown -Rvf mycroft:mycroft /var/log/mycroft*
sudo chown -Rvf mycroft:mycroft /tmp/mycroft
sudo chown -Rvf mycroft:mycroft /var/run/mycroft*
sudo chown -Rvf mycroft:mycroft /opt/mycroft
sudo chown -R mycroft:mycroft /var/log/mycroft*
sudo chown -R mycroft:mycroft /tmp/mycroft
sudo chown -R mycroft:mycroft /var/run/mycroft*
sudo chown -R mycroft:mycroft /opt/mycroft
sudo chown mycroft:mycroft /var/tmp/mycroft_web_cache.json

# reload daemon scripts
Expand Down Expand Up @@ -144,10 +144,10 @@ function github_init_scripts() {
sudo ln -s /home/mycroft/.mycroft/identity ${HOME}/.mycroft/
fi

sudo chown -Rvf ${user}:${user} /var/log/mycroft*
sudo chown -Rvf ${user}:${user} /var/run/mycroft*
sudo chown -Rvf ${user}:${user} /tmp/mycroft
sudo chown -Rvf ${user}:${user} /var/tmp/mycroft_web_cache.json
sudo chown -R ${user}:${user} /var/log/mycroft*
sudo chown -R ${user}:${user} /var/run/mycroft*
sudo chown -R ${user}:${user} /tmp/mycroft
sudo chown -R ${user}:${user} /var/tmp/mycroft_web_cache.json

# reload daemon scripts
sudo systemctl daemon-reload
Expand Down

0 comments on commit c039aeb

Please sign in to comment.