Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
b9c982b1
Commit
b9c982b1
authored
Jun 05, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
280a6213
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
add_key.sh
vz/azbyka/add_key.sh
+14
-0
azbyka_update_fallback.sh
web/azbyka_update_fallback.sh
+1
-1
No files found.
vz/azbyka/add_key.sh
0 → 100755
View file @
b9c982b1
#!/bin/sh
for
i
in
/azbyka/
*
;
do
skip
=
'1'
for
j
in
$i
/www/
*
/wp-config.php
$i
/www/
*
/
*
/wp-config.php
;
do
[
-f
$j
]
&&
skip
=
''
&&
break
done
[
-n
"
$skip
"
]
&&
continue
echo
"Copy to
$i
..."
grep
bg-azbyka@
$i
/.ssh/authorized_keys
&&
echo
"skipped"
&&
continue
cat
>>
$i
/.ssh/authorized_keys
<<
EOF
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAgqJ8ZjWO4VkHnoP6QoOE1HFRwM4CC4akZlnoD6PzOihIS+68OQcVmxOZHWOhbwLjDoIkw+f+PVMt9ThsQFjU9a6hiVBZOWU2tl8aHe4qG/Kp5gR5KGk0+900MNkeJpIVQlhlIuSND8Se1PwG/GW0Wso+aiTt+35qFPEZcXYlcXExiWDouNBaGEr+yWiFzu3064GhgeKhsOW7+79RK1xTiO1x6Q9+VNHpIPRIqbNwbW7R3vjU4ofRc3VCvGP3jT9o6nMIn1Ztagt/vURWue56ejWd3z8jYnSMZM8/r2C8B/bvJCK4GDum0CMmoyiw8gFYtajkfbe5izqvZxsvX7r9CQ== bg-azbyka@
EOF
done
web/azbyka_update_fallback.sh
View file @
b9c982b1
...
...
@@ -35,7 +35,7 @@ gen_static_fallback()
echo
"generate
$otf
"
cat
$TEMPL
|
sed
-e
"s|@fallback|@fallback-
$f
|g"
>
$otf
# TODO: merge with rewrite_if_changed
[
-r
"
$of
"
]
||
{
echo
"there is no target
$of
file"
;
return
1
;
}
#
[ -r "$of" ] || { echo "there is no target $of file" ; return 1; }
[
-s
"
$otf
"
]
||
{
echo
"empty generated file
$otf
"
;
return
1
;
}
rewrite_if_changed
"
$otf
"
"
$of
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment