$MY_PATH problem
This commit is contained in:
parent
4f789d88dd
commit
a96c689414
@ -286,7 +286,7 @@ if [[ $NEW == 1 ]]; then
|
||||
brother_ql_create --model QL-700 $MY_PATH/../img/MadeInZion_G1_ASTROPORT.png --label-size 62 > /tmp/LOGO.bin
|
||||
brother_ql_print /tmp/LOGO.bin /dev/usb/lp0
|
||||
fi
|
||||
sudo cp ../img/MadeInZion_G1_ASTROPORT.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/
|
||||
sudo cp $MY_PATH/../img/MadeInZion_G1_ASTROPORT.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/
|
||||
|
||||
# PRINT QR.png CREDENTIALS AND QR CODES
|
||||
if [[ -e /dev/usb/lp0 ]]; then
|
||||
@ -331,7 +331,7 @@ if [[ $NEW == 1 ]]; then
|
||||
else
|
||||
|
||||
## PUT DATA IN NEXTCLOUD FOLDER ( I dont' care if commands fails 2>/dev/null )
|
||||
sudo cp ../img/MadeInZion_G1_ASTROPORT.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/ 2>/dev/null
|
||||
sudo cp .$MY_PATH/../img/MadeInZion_G1_ASTROPORT.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/ 2>/dev/null
|
||||
sudo cp /home/${YOU}/.zen/SMS/PHONE/${phonehash}/avatar.jpg /var/www/nextcloud/data/${xzuid}/files/MadeInZion/ 2>/dev/null
|
||||
sudo cp /home/${YOU}/.zen/SMS/PHONE/${phonehash}/QR.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/QR_${G1}.png 2>/dev/null
|
||||
sudo cp /home/${YOU}/.zen/SMS/PHONE/${phonehash}/QRSEC.png /var/www/nextcloud/data/${xzuid}/files/MadeInZion/QRSEC_${G1}.png 2>/dev/null
|
||||
|
@ -26,7 +26,7 @@ for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.error.txt; do
|
||||
xzuid=$(cat "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid.txt")
|
||||
[[ ! $xzuid ]] && echo "ERROR $tosend" && continue
|
||||
|
||||
./sms/natools.py decrypt -f pubsec -k "/home/${YOU}/.zen/secret.dunikey" -i "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/passwd.encrypt" -o "/tmp/${phonehash}.phone"
|
||||
$MY_PATH/sms/natools.py decrypt -f pubsec -k "/home/${YOU}/.zen/secret.dunikey" -i "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/passwd.encrypt" -o "/tmp/${phonehash}.phone"
|
||||
phone=$(cat /tmp/${phonehash}.phone)
|
||||
echo "SENDING ${phone}"
|
||||
## PREPARE SMS
|
||||
@ -44,7 +44,7 @@ for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh; do
|
||||
xzuid=$(cat "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid.txt")
|
||||
[[ ! $xzuid ]] && echo "ERROR $tosend" && continue
|
||||
|
||||
./sms/natools.py decrypt -f pubsec -k "/home/${YOU}/.zen/secret.dunikey" -i "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/passwd.encrypt" -o "/tmp/${phonehash}.phone"
|
||||
$MY_PATH/sms/natools.py decrypt -f pubsec -k "/home/${YOU}/.zen/secret.dunikey" -i "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/passwd.encrypt" -o "/tmp/${phonehash}.phone"
|
||||
phone=$(cat /tmp/${phonehash}.phone)
|
||||
echo "${phone}"
|
||||
## PREPARE SMS
|
||||
|
Loading…
Reference in New Issue
Block a user