Issue
When I first clone this project in mac and run make install, there are 2 errors when it starts to run seosnap-dashboard/dev/commands/install.sh:
- Error with
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c50 because tr can't process special characters from /dev/urandom
sed error because flag -i isn't provided with backup extension.
Proposed solution
- Change the secret gen to
head /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | head -c50
- Add backup extension (ex:
sed -i "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env; to sed -i.bak "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;)
Issue
When I first clone this project in mac and run
make install, there are 2 errors when it starts to runseosnap-dashboard/dev/commands/install.sh:cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c50becausetrcan't process special characters from/dev/urandomsederror because flag-iisn't provided with backup extension.Proposed solution
head /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | head -c50sed -i "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;tosed -i.bak "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;)