Skip to content

Commit

Permalink
Set correct permissions for pipe scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed May 11, 2019
1 parent fcb8bc9 commit ee7751d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ztvh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ then
#

mkdir ~/ztvh/chpipe 2> /dev/null
chmod 0777 ~/ztvh/chpipe/* 2> /dev/null
chmod 0777 ~/ztvh/chpipe 2> /dev/null

if [ ! -s ~/ztvh/user/options ]
then
Expand All @@ -1368,6 +1368,7 @@ then

grep "provider=" ~/ztvh/user/userfile | sed "/^$/d;s/provider=//g" > provider
perl ~/ztvh/zchannels.pl > ~/ztvh/channels.m3u
chmod 0777 ~/ztvh/chpipe/* 2> /dev/null
rm channels_file provider 2> /dev/null
else
if grep -q "insecure=true" ~/ztvh/user/userfile
Expand Down

0 comments on commit ee7751d

Please sign in to comment.