Commit Graph

11 Commits (edafce059d6a26367b6d379f314a86e2fb8a2b14)

Author SHA1 Message Date
Julien Kassar ed556b09df Standardize shell scripts (#1711)
* Standardize shebangs
* Standardize spaces
* Standardize functions declaration
* Standardize conditional constructs
* Standardize double quotes
* Standardize command substitution
* Standardize sed command
2018-08-02 14:48:47 -05:00
Åke 23fcc631c4 Bugfix mycroft-use github (#1659)
* Fix startup scripts

- change start.sh to the new start-mycroft.sh
- fix startup of messagebus service
- fix startup of enclosure

* Fix running dev_setup.sh as root

Use --allow-root when calling dev_setup.sh

* Correct default directory for user

On the Mark-1 the script would create the mycroft-core repo in /home/root instead of /root when running the script as root

* Skip mimic installation correctly

* Allow doing the github install without root

Running mycroft under root stumbles into issues accessing the audio. allowing unstall under pi user is also more intuitive.

* Change ownership of the webcache

* fix starting/stopping wifi-service

* Fix switching permissions

* Correct startup order

- load messagebus before enclosure
- reboot to workaround audio input issue

* Disable updates when switched to github install

* Fix identity update

identity updates weren't transfered back to the mycroft user since the linked file was overwritten. Now the identity folder is linked instead.
2018-07-10 03:26:30 -05:00
penrods 66f94962a3 Fix simple typo in switch to Github
The missing space breaks the shell path test when switching to a Github install
2017-12-09 15:58:27 -06:00
Åke Forslund f23ba5197e Remove all mycroft packages individually
Autoremove don't seem to be reliable enough. This will remove the
required packages individually.
2017-11-19 00:24:48 -06:00
Åke Forslund 9bb1d18161 Use autoremove when removing mycroft-mark-1
remove will only remove the meta package, autoremove will remove the
meta package and all packages installed as dependencies for that
package.
2017-11-09 12:52:40 -06:00
penrods c075aec77f Add 'home' and 'home-test' to mycroft-use.sh
Decouple the chosen backend from the stable/unstable build in the mycroft-use
utility.  Now there are independent 'home' and 'home-test' options that can
be used switch the chosen backend.

Also fix several issues with the utility, including:
* Platform is detected and appropriate packages (mycroft-picroft, etc) used.
* Added missing services to the github support
* Improved help message
2017-10-28 03:02:46 -05:00
penrods 760f2fb182 Disconnect test backend from unstable in mycroft-use
The mycroft-use utility had a direct connection between the unstable build and
the test backend; and the stable build and the production backend.  This made
some kinds of testing tricky.

Now you run ```mycroft-use home``` and ```mycroft-use home-test``` to make
the backend association explicitly.

Also cleaned up the whitespace, which was a mixture of spaces and tabs.
2017-10-27 15:48:30 -05:00
penrods 8f2e5d9498 Change to Apache 2.0 license from GPLv3.0
This commit officially switches the mycroft-core repository from
GPLv3.0 licensing to Apache 2.0.  All dependencies on GPL'ed code
have been removed and we have contacted all previous contributors
with still-existing code in the repository to agree to this change.

Going forward, all contributors will sign a Contributor License
Agreement (CLA) by visiting https://mycroft.ai/cla, then they will
be included in the Mycroft Project's overall Contributor list,
found at: https://github.com/MycroftAI/contributors.  This cleanly
protects the project, the contributor and all who use the technology
to build upon.

Futher discussion can be found at this blog post:
https://mycroft.ai/blog/right-license/

This commit also removes all __author__="" from the code.  These
lines are painful to maintain and the etiquette surrounding their
maintainence is unclear.  Do you remove a name from the list if the
last line of code the wrote gets replaced?  Etc.  Now all
contributors are publicly acknowledged in the aforementioned repo,
and actual authorship is maintained by Github in a much more
effective and elegant way!

Finally, a few references to "Mycroft AI" were changed to the correct
legal entity name "Mycroft AI Inc."

==== Fixed Issues ====
#403 Update License.md and file headers to Apache 2.0
#400 Update LICENSE.md

====  Documentation Notes ====
Deprecated the ScheduledSkill and ScheduledCRUDSkill classes.
These capabilities have been superceded by the more flexible MycroftSkill
class methods schedule_event(), schedule_repeating_event(), update_event(),
and cancel_event().
2017-10-04 01:28:44 -05:00
Michael Nguyen 592882d125 fixed codacity again 2017-09-14 14:23:39 -05:00
Michael Nguyen 8c88c0f2ae fixed codacity 2017-09-14 14:23:39 -05:00
Michael Nguyen 00f9bac927 Commit headline -- not longer than this line (50)
This is the template for commits to mycroft-core and also an example of
a commit message. To use this template, change the first line (think of
it as a "headline" for the commit) and then edit this message with a
longer description of the change.  To be nice, keep lines to 72
characters or less (The first two lines of this template are exactly
that length).  Also use imperative writing, e.g. "Fix broken code" or
"Implement my new feature", not "Fixes the broken code" or
"Implemented my new feature".

Sections below can then be filled out and edited as appropriate.
Unused sections can optionally be removed.

Please fill this out carefully.  This moment is when the code is
clearest in the mind of you, the foremost expert in this change.
Please pause to think of side effects and impacts.

====  Documentation Notes ====
mycroft-use script is used to switch from stable and unstbale builds for the mycroft core. It also points the unstable build to use the home-test.mycroft.ai cluster instead of production cluster.

mycroft-packaging repo needs to be merged to master for the packaging to take place.
2017-09-14 14:23:39 -05:00