Open alitonia opened 3 years ago
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:
make install
seosnap-dashboard/dev/commands/install.sh
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c50
tr
/dev/urandom
sed
-i
head /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | head -c50
sed -i "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;
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 -c50
becausetr
can't process special characters from/dev/urandom
sed
error because flag-i
isn't provided with backup extension.Proposed solution
head /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | head -c50
sed -i "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;
tosed -i.bak "s/snaptron$/${ADMIN_NAME:-snaptron}/g" .env;
)